[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

C Programming :: Functions - Discussion

Home > C Programming > Functions > MCQs Questions Discussion

14 / 53

What error would the following function given on compilation?

#include<stdio.h>
int fun(int a, int b)
{
int a;
a=20;
return a;
}

void main()
{
int x = fun(1,3);
}

AMissing parentheses is return statment.

BThe function should be defined as mt fun (int a, int b)

CRedeclaration of a

DNone of these

Answer: Option (Login/Signup)

Show Explanation

Asked In ::

Post Your Answer Here:     

No Discussion on this question yet!