Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
Why is so? When you enter "0", then output is good. When enter other than "0", then no output at all.
4 Respostas
+ 2
There is no output because the code didn't finish successfully. You have set to print 2 lines, and print another line when value of <n> is non zero. The 3rd printf call was the one that crashed the program, because you use %s format specifier while passing value of <s> pointer which is a char.
Hth, cmiiw
+ 1
Ipang It's clear. but 2 lines should always be displayed
+ 1
That's not the case when the program crashes UraL
+ 1
Ok