Logo 
Search:

C Programming FAQ

Submit Interview FAQ
Home » Interview FAQ » C ProgrammingRSS Feeds

C programming practical question 57

  Shared By: Adah Miller    Date: Jan 24    Category: C Programming    Views: 66

Answer:


main()
{
char name[10],s[12];
scanf(" \"%[^\"]\"",s);
}
How scanf will execute?


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.

Share: 
 

Didn't find what you were looking for? Find more on C programming practical question 57 Or get search suggestion and latest updates.


Your Comment
  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].


Tagged: