Home » C Programming » Structures, Unions, Enums

Point out the error in the program? #include int main() { struct emp { char name[20]; float sal; }; struct emp e[10]; int i; for(i=0; i<=9; i++) scanf("%s %f", e[i].name, &e[i].sal); return 0; }

Correct Answer: Error: Floating point formats not linked

Explanation:

At run time it will show an error then program will be terminated.


Sample output: Turbo C (Windows)



c:\>myprogram
                                                          
Sample
12.123

scanf : floating point formats not linked 
Abnormal program termination 


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion