

MCQOPTIONS
Saved Bookmarks
1. |
Which error are you likely to get when you run the following program in TC/TC++?#include <stdio.h>int main ( ){ struct emp { char name[20]; float sal; }; struct emp e[10]; int i ; for (i = 0; i <= 9; i++) { printf ("Enter name and salary : "); scanf ("%s %f" , e[ i ].name, &e[ i ].sal); } return 0 ;} |
A. | Suspicious pointer conversion |
B. | Floating point formats not linked |
C. | Cannot use scanf ( ) for structures |
D. | Strings cannot be nested inside structures |
Answer» C. Cannot use scanf ( ) for structures | |