Declarations and Initializations

Q1:
What is the output of the program
#include<stdio.h>
int main()
{
    extern int fun(float);
    int a;
    a = fun(3.14);
    printf('%d\n', a);
    return 0;
}
int fun(int aa)
{
	return (int)++aa;
}

A 3

B 3.14

C

D 4

E Compile Error

ANS:E - Compile Error

2 Errors
1. Type mismatch in redeclaration of fun
2. Type mismatch in parameter aa



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.