>then why there is no error message like
>"too many parameters are not allowed"
While a compiler could warn you at build time about a different number of actual arguments than the format string suggests, it's more complicated than you might think.
>do you mean that 1 act as parameter having format specifier and 2 and 3
>are acting as string values that will replace the %s in 1st parameter?
Correct. Only the first parameter to scanf acts as a format string.
according to the problem scanf is replaced by the statement "%s is char" before compilation. so finaly statement looks like printf("%s is char","%s is char"); so the Format specifier %s in the first statement takes the second string as a constant string so print that string as it is...so finaly program will print %s is char is char.
hi narue i am unable to understand
"While a compiler could warn you at build time about a different number of actual arguments than the format string suggests, it's more complicated than you might think."
>hi narue i am unable to understand
What's to understand? It's possible to get an error message, but unlikely. Don't expect your compiler to warn you about doing obviously stupid things, you need to use a modicum of gray matter to program in C.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...