Question: My program includes the following statements. What might go wrong? / / . . . char data [ 4 8 ] ; if ( scanf
My program includes the following statements. What might go wrong?
char data;
if scanfs data
Group of answer choices
Since you put the format string and the array in the wrong order, you'll probably get a "segmentation fault" here.
The program will do a "segmentation fault" because you did not give it the address of the array.
A string longer than bytes will "overflow" the array because there is no set limit on the input.
There's nothing wrong with this.
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
