Interview Question 3577
Created by admin on Sat, 17/11/2012 - 12:43
Question:
main() {
char name[10],
s[12];
scanf(" \"%[^\"]\"",s);
}
How scanf will execute?
Language:
Answer:
First it checks for the leading white space and discards it.Then it matches with a quotation mark and then it reads all character upto another quotation mark.