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

inputting strings

$
0
0

when i used to read a string character by character i get an error but when i read the string as a whole by using scanf(%s") or gets i get the correct answer can anyone explain why? i have even included getchar to read the null character or end of file but i am not getting the correct answer


Viewing all articles
Browse latest Browse all 40121

Trending Articles



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