How do you fix the unbounded string copy in the following code?
char fname[20]; /* 1 */
cout << “Enter First Name:”; /* 2 */
cin >> fname ; /* 3 */
Reveal answer
Fill a bubble to check yourself
How do you fix the unbounded string copy in the following code?
char fname[20]; /* 1 */
cout << “Enter First Name:”; /* 2 */
cin >> fname ; /* 3 */