【单选题】
假定有定义“int b[10];int *pb;”,则不正确的赋值语句为( )。
【单选题】
在函数定义的参数表中,也可以使用函数参数,假定一个函数参数说明为int ff(int),则等价的函数指针说明为( )。
【单选题】
在函数定义的参数表中,也可以使用函数参数,假定一个函数参数说明为int ff(int),则等价的函数指针说明为( )。
【单选题】
假定有“struct BOOK{char title[40];float price;};struct BOOK *book;”,则不正确的语句为( )。
①
struct BOOK *x=malloc(book);
②
struct BOOK x={“C++ Programming”,27.0};
③
struct BOOK *x=malloc(sizeof(BOOK));
【单选题】
假定有“struct BOOK{char title[40];float price;};struct BOOK *book;”,则不正确的语句为( )。
①
struct BOOK *x=malloc(book);
②
struct BOOK x={“C++ Programming”,27.0};
③
struct BOOK *x=malloc(sizeof(BOOK));
【单选题】
假定一个函数的参数说明为const int a,则在函数体中执行( )操作非法。
【单选题】
假定一个函数的参数说明为const int a,则在函数体中执行( )操作非法。
【单选题】
要求定义一个返回值为double类型的名为sum的函数,其功能为求两个 double类型数的和。正确的定义形式为( )。
①
sum(double x,y)
{ rerurn x+y; }
②
sum(double x,double y)
{ return x+y; }
③
double sum(double x,double y){ return x+y; }
④
double sum(double x,double y);{ return x+y;}
【单选题】
假定有定义为“int m=7, *p;”,则给p赋值的正确表达式为?
【判断题】
A/D转换器的转换精度定义为一个实际A/D转换器与一个理想A/D转换器在量化值上的差值。