Find out the errors in the following :
void f (float a) ;
{
float a:
print f(%f” ,a);
}
Answers
Answered by
0
void f (float a)
{
float a;
printf("%f",a);
}
{
float a;
printf("%f",a);
}
Answered by
1
Let me explain line by line about the errors:
1. void f (float a) ;
A function should not end with “;”
2. float a:
float a is a declaration statement where “a” is declared as a type “float” and it “should end with semi-colon”
3. print f(%f” ,a);
A printf statement’s arguments which tells about the type of data should be enclosed within “double quotes” which is missing here. The start quote is missing.
Similar questions