+ 4
Why it is not printing. Can anyone explain me
printf("C programming %s", "Class by\n%sSanfoundry", "WOW"); when i execute this code.. WOW is not printing can someone explain me
12 Respostas
+ 11
Why not: printf("C programming %s %s", "Class by\n", "WOW Sanfoundry");
+ 10
You are so lovely Manual!
You deserve that my friend
+ 6
Here is a code I made as an example
https://code.sololearn.com/cQV1FbQQIdD8/?ref=app
+ 6
I agree with @Babak
You already formated the printed value
C programming %s
with a string
the second %s would not refference "wow" not as a string
+ 6
Another example
inspired by @babak's comment
https://code.sololearn.com/c31KP11TnYh3/?ref=app
+ 5
Try making a variables for substuting %s
+ 5
@Babak
@Manjit
Thank you!
+ 3
@Babak
Thank you for the tip!
I have not tried that before. 👍
+ 3
@Manjit
Please press the checkmark next to @Babak's answer.
if you see it
+ 2
this code snippet is in my mcq question and the answer is printed all except wow.... can u please elaborate
+ 1
yeah now i understood thank u guys
+ 1
me too. hehe