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

How this scanf will scan?

Why don't you try it and find out...

Why don't you try it and find out...

I tried but i could not understand how it scan....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.