Quantcast
Viewing all articles
Browse latest Browse all 39796

working of printf in C

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 39796

Trending Articles



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