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

working of printf in C

$
0
0

Can anybody please explain me the output of following code

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

O/P-

ABCDEABCDE\n

thanx in advance


Viewing all articles
Browse latest Browse all 40121

Trending Articles



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