Arjun wants to read a string with spaces from the following which is suitable.

(а) cin>> 

(b) cin.getline(str,80) 

(c) str = getc(stdin) 

(d) none of these

5 views

1 Answers

(b) cin.getline(str,80)

5 views