What is the meaning of the following C statement? [code]scanf("%[^\n]s", ch);[/code]

Ivanesn

New member
What is the meaning of the following C statement?
Code:
scanf("%[^\n]s", ch);
A. read all character except new line
B. read all characters
C. read only new line character
D. syntax error
 

Tìm kiếm

Back
Top