Question: char name [ 5 ] ; cin > > name; What will happen if the user enters Jennifer at the keyboard? Jennifer will be stored
char name;
cin name;
What will happen if the user enters "Jennifer" at the keyboard?
"Jennifer" will be stored in the name array with no problems
"Jenn" will be stored in the name array and the rest of the characters will be lost
"Jenni" will be stored in the name array and the rest of the characters will be lost
"Jenni" will be stored in the name array, and "fer" will be stored off the end of the array
The system will store "Jenn" in the name array, followed by the character, and "ifer" will be stored off the end of the array
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
