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);
{
int x = 4;
}
printf("%d", x);
}



View More Related Question

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

3) Which is not a storage class?

4) What will be the output of the following C code (after linking to source file having definition of ary1)?

 #include <stdio.h>
int main()
{
extern ary1[];
printf("%d\n", ary1[0]);
}

5) Can variable i be accessed by functions in another source file?

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

UP Gk Online Test

taiyari24hour.com

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