N
Nasir Khan
Dear Sir,
I am a newbie in C. I am trying to run the following code.
main()
{
struct emp
{
float sal;
};
struct emp empl;
scanf("%f",&empl.sal);
printf("%f",empl.sal);
}
This program compiles fine but at run time I get error. I am using
Borland C on windows.
IF any one has got similar problem and knows a fix, please help me.
Kind Regards,
Nasir Khan
I am a newbie in C. I am trying to run the following code.
main()
{
struct emp
{
float sal;
};
struct emp empl;
scanf("%f",&empl.sal);
printf("%f",empl.sal);
}
This program compiles fine but at run time I get error. I am using
Borland C on windows.
IF any one has got similar problem and knows a fix, please help me.
Kind Regards,
Nasir Khan