Question: char name [ 5 ] ; cin > > name; What will happen if the user enters Jennifer at the keyboard? char name [ 5
char name;
cin name;
What will happen if the user enters "Jennifer" at the keyboard?
char name;
cin name;
What will happen if the user enters "Jennifer" at the keyboard?
"Jenni" will be stored in thename array and the rest of the characters will be lost
"Jennifer" will be stored in the name array with no problems
"Jenn" will be stored in thenamearray and the rest of the characters will be lost
The system will store "Jenn" in thenamearray followed by the character, and "ifer" will be stored off the end of the array
"Jenni" will be stored in the name array, and "fer" 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
