额 看看先
来做几个试验吧
#include <stdio.h>
fun()
{}
main()
{
printf("%d",fun(0,2));
getchar();
}
运行结果是0;
********************************
#include <stdio.h>
fun()
{}
main()
{
printf("%d",fun('0','2'));
getchar();
}
运行结果是48;48是字符'0'的ASCII码值;
********************************
#include <stdio.h>
fun()
{}
main()
{
printf("%d",fun('2','0'));
getchar();
}
运行结果是50;50是字符'2'的ASCII码值;
*******************************
#include <stdio.h>
int a=0,b=2;
fun(int)
{}
main()
{
printf("%d",fun(a,b));
getchar();
}
没通过编译,错误是在调用函数fun时有额外的参数
——————————————————————
上面四个程序对比得出的结论是:1,当函数没有返回类型时,编译器(我用的TC3.0)默认返回int型
2,当函数有参数时,默认返回第一个参数所对应int型值
3,当函数声明时有对参数的说明,则调用时必须保持和声明一致
An employee named Fren comes to you asking for help with the power settings on her portable Windows 2000 Professional computer. She wants to maximize battery life by having all devices power off when she presses the sleep button. When she restores power, she wants to begin where she last left off (ie, she does not want to have to boot the computer). What power option or scheme do you recommend for her?
a. Standard options.
b. Power Off option.
c. Hibernate option.
d. Always On power scheme.
e. Portable power scheme