Quantcast
Channel: CodeChef Discuss - latest questions
Viewing all articles
Browse latest Browse all 39796

problem with printf

$
0
0

here is my code

char *str="ABCDE" ;
 printf(str,"%s \\n ");

the answer of this is ABCDE .. there is no runtime error in the code it runs fine.. all i dint understood was why the \n is no printed just after the ABCDE i.e why the \n in the first printf was ignored and only the string is printed ???


Viewing all articles
Browse latest Browse all 39796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>