在C程序中,设一表达式中包含有int,long,char和unsigned类型的变量和数据,这四种类型数据的转换规则是()。
A:int→unsigned→long→char B:char→int→long→unsigned C:char→int→unsigned→long D:int→char→unsigned→long
设有以下函数:
void fun(int n,char*s)
……
则下面对函数指针的定义和赋值均正确的是______。
A:void(*pf)(int,char*);pf=fun; B:void*pf();pf=fun; C:void*pf();*pf=fun; D:void(*pf)(int,chad;)pf=&fun;
已知char a;int b;float c;double d;则表达式a*b+c-d结果为
A:double B:int C:float D:char
已知char a;int b;float c;double d;则表达式a*b+c-d的结果为( )。
A:double B:int C:float D:char
已知char a;int b;float c;double d;则表达式a*b+c-d结果为
A:double B:int C:float D:char
已知char a; int b; float c; double d; 则表达式a*b+c-d结果为
A:double B:int C:float D:char
若一个函数的原型为"int * Xfun1(int x,int& y,char z);",则该函数的返回值类型为
A:int * B:int C:int& D:char