Which of the following is an external variable in the following C code?
 #in

Home | Discussion Forum
Taiyari24Hour

Which of the following is an external variable in the following C code?

 #include <stdio.h>
int func (int a)
{
int b;
return b;
}
int main()
{
int c;
func (c);
}
int d;



View More Related Question

2) What will be the output of the following program?

 #include< stdio.h>
int main()
{
register int I = 2;
static char ch = ‘A’;
auto float j;
int k;
k = ++ch && I;
k = ++ch;
j = i-- + ++k * 2;
printf(“%d %f”, k , j);
return 0;
}

3) Functions in C are always _________

4) What will be the output of the following C code (without linking the source file in which ary1 is defined)?

 #include <stdio.h>
int main()
{
extern ary1[];
printf("scope rules\n");
}

5) What will be the output of the following C code?

 #include <stdio.h>
double i;
int main()
{
printf("%g\n",i);
return 0;
}

UP Gk Online Test

taiyari24hour.com

Study 2 Online Says....
Kindly log in or signup.