Sail E0 Webinar
Question


Point out the error in the program?


#include<stdio.h>
int main()
{
struct emp
{
char name[20];
float sa1;
};
struct emp e[10];
int i;
for(i=0; i
Options:
A .  Error: invalid structure member
B .  Error: Floating point formats not linked
C .  No error
D .  None of above
Answer: Option B

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

Sample output: Turbo C (Windows)

c:`setminus`>myprogram


Sample

12.123


scanf : floating point formats not linked

Abnormal  program termination



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers