CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the following C program:
void f(int,int);
int d =1;
void main ()
{
int a = 2;
static int b =3;
f(a,b); d++;
printf ("%d",d);
}
void f (int a, int b)
{
d =a+b ;
a++;
b++;
}
Find the output produced by above code.


A
5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
6
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Join BYJU'S Learning Program
CrossIcon