+ 1
What is the difference between getchar() and cin
2 Answers
0
Hello Harshit Grover.
The difference is that you cannot input space ' ', new line '\n', tab '\t' and etc with cin. If you want to input one of these, you have to use getchar().
0
Thanx really helpful