9. What will be the output of following code :
// Assume all header files are included
int find(int x,int y)
{
return (x*5+y*86);
}
int main(void)
{
int a=44,b=32;
int res;
res=find(a);
printf("%d",res);
return 0;
}
A. 44
B. 32
C. 76
D. ERROR -Too few Arguments passed
View Answer & Explanation
Ans. d
10. What will be the output of following code :
// Assume all header files are included
#include.....
int a=12;
main(void)
{
a=0;
printf("%d", a);
}
A. 0
B. 12
C. 65535
D. ERROR – Cannot Override Global variable.
View Answer & Explanation
Ans. a
Explanation : Initially, ‘a’ was provided with a value 12 which was later updated to 0.
