What will be the output of the following C code?
 #include <stdio.h>
					 Home | Discussion Forum
					 
						
                        
                    
                    

Taiyari24Hour

What will be the output of the following C code?

 #include <stdio.h>
int x = 5;
void main()
{
int x = 3;
printf("%d", x);
{
x = 4;
}
printf("%d", x);
}



View More Related Question

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

 #include <stdio.h>
int main()
{
printf("%d", d++);
}
int d = 10;

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

 #include <stdio.h>
int x;
void main()
{
printf("%d", x);
}

4) 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;
}

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

 #include <stdio.h>
int *i;
int main()
{
if (i == 0)
printf("true\n");
return 0;
}

UP Gk Online Test

taiyari24hour.com

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