Question: 3. Given float age[5]; float *data = age; Which of the following statement does not correctly loads data to the array age (there is more
3. Given float age[5]; float *data = age; Which of the following statement does not correctly loads data to the array age (there is more than one)? A. for (i = 0; i < 5; i++) { scanf(%f, &age[i]); } B. for (i = 0; i < 5; i++) { scanf(%f, data); data++ } C. for (data = age; data < data+ 5; data++) { scanf(%f, data); } pg. 2 D. for (i = 0; i < 5; i++) { scanf(%f, age); } E. for (data = age; data < data+ 5; data++) { scanf(%f, &data[0]); } F. for (i = 0; i < 5; i++) { scanf(%f, &age[0]); } G. for (i = 0; i < 5; i++) { scanf(%f, &data[i]); data++ } H. for (i = 0; i < 5; i++) { scanf(%f, &age[i]); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
