If the variable is defined and assigned correctly, the following correct expression is ( )
A. x=y*5=x+z
B. int(15.8%5)
C. x=y+z+5,++y
D. x=25%5.0
查看答案
There are the following procedures, where the initial value of k is an octal number. int main(void) { int k=011; printf("%d\n",k++); return 0; } The output of the program after running is ( ).
A. 12
B. 11
C. 10
D. 9
Defined as: int k = 0;, the expression that has different value from the other three expressions is ( )
A. k++
B. k+=1
C. ++k
D. k+1
Let all variables have been correctly defined. To assign values 10 and 20 to variables a1 and a2, and to assign characters X and Y to variables c1 and c2, use scanf ("%d%c%d%c", &a1, &c1, &a2, &c2); statement. The correct input form shown below is ( ). (Note:□ stands for space character)
A. 10□X□20□Y
B. 10□X20□Y
C. 10□X20□Y
D. 10X20Y
In C, the operator that requires operands to be integers is ( )
A. /
B. ++
C. *=
D. %