What will be the output of the following C code?
#include <stdio.h>
int x;
void main()
{
printf("%d", x);
}
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);
}
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Which part of the program address space is p stored in the following C code?
#include <stdio.h>
int *p = NULL;
int main()
{
int i = 0;
p = &i;
return 0;
}
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");
}
Array sizes are optional during array declaration by using ______ keyword.
Automatic variables are allocated space in the form of a __________
What will be the output of the following C code?
#include <stdio.h>
int main()
{
printf("%d", d++);
}
int d = 10;
What will be the output of the following C code?
#include <stdio.h>
static int x = 5;
void main()
{
x = 9;
{
int x = 4;
}
printf("%d", x);
}
Comment on the following 2 C programs.
#include <stdio.h> //Program 1
int main()
{
int a;
int b;
int c;
}
#include <stdio.h> //Program 2
int main()
{
int a;
{
int b;
}
{
int c;
}
}
What will be the output of the following C code?
#include <stdio.h>
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf("%d", x);
}
What will be the x in the following C code?
#include <stdio.h>
void main()
{
int x;
}
10 videos|13 docs|15 tests
|
10 videos|13 docs|15 tests
|