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


Share with your friends
Call

(b) cin.getline(str,80)