InterviewSolution
Saved Bookmarks
| 1. |
How do the following two statements differ in operation?cin>>ch;cin.get(ch); |
|
Answer» The difference between cin>>ch and cin.get(ch) is that when >> operator is used, the white spaces (e.g., tabs), spaces etc. and new-line characters are ignored whereas it is not so with cin.get(ch). |
|