C51 language: in a source program, the main function position.
A. It has to be in the beginning
B. Must be after all functions
C. You can do whatever you want
D. It has to be at the end
查看答案
If there is the following definition int a [10], * P = a, then p + 5 means ( )
Address of element a [5]
B. The value of element a [5]
C. Address of element a [6]
D. The value of element a [6]
If there are statements int * point, a = 4; and point = & A;, the following set of options representing address are ()
A. a,point,*&a
B. &*a,&a,*point
C. *&point,*point,&a
D. &a,&*point ,point
The output of the following program isint i=2 ;printf(“%d%d%d”,i*=2,++i,i++) ;
A. 4,5,5
B. 8,4,3
C. 4,4,5
D. 4,5,6
The definition of a function is as followsdouble fun(int x, double y) { …… }The correct function prototype of the function is declared as follows:
A. double fun (int x,double y)
B. fun (int x,double y)
C. double fun (int ,double );
D. fun(x,y) ;