题目内容

ch is defined as a character type variable. The error in the following assignment statement is ( ).

A. ch=‘\’;
B. ch=62+3;
C. ch=NULL;
D. ch=‘\xaa’;

查看答案
更多问题

int x,y; float z;The correct assignment statement is ( )

A. x=1,y=2,
B. x=y=100
C. x++;
D. x=int (z);

There are the following procedures:int main(void) { char a,b,c,d; scanf("%c%c",&a,&b); c=getchar(); d=getchar(); printf("%c%c%c%c\n",a,b,c,d); return 0; } When executing the program, enter data as follows ( stands for carriage return, note: carriage return is also a character) 1234Then the output result is ( ).

A. 1234
B. 12
C. 123
D. 34

There are the following segments: int x1,x2;char y1,y2;scanf("%d%c%d%c",&x1,&y1,&x2,&y2); If the values of x1, x2, y1 and y2 are required to be 10, 20, a and b respectively, the correct data input is ( ) (Note: └┘ represents the space)

A. 10A└┘20B
B. 10└┘A20B
C. 10 └┘A└┘20└┘ B
D. 10A20└┘B

Of the following symbols, the one that does not belong to the escape character is ( ).

A. \\
B. \0xAA
C. \t
D. \0

答案查题题库