How variable length length works like and how does the call where s is defined as: Please explain. in The first argument "string" is interpreted as a format string. There is no entry code in it, so the second parameter will never be used. The result will be "string". OTOH is an integration code, so the second argument is inserted as a string, the result was "no string". It is not overloading because, although different logic types are possible, in overloading, similar functions with variable logic are always called. Different tasks are said to be overloaded on the basis of logic type. printf (), scanf (), etc C
printf ("did not work% s", s); <
printf (s, "not working% s"); Is different from
const char * s = "string";
const char * s = "string"; Printf (s, "did not work% s");
printf ("no% s", s);
Comments
Post a Comment