Forwarded from Disha
What will be the output of the following C code?
#include <stdio.h>
void main()
{
static int x;
printf("x is %d", x);
}
a) 0
b) 1
c) Junk value
d) Run time error
#include <stdio.h>
void main()
{
static int x;
printf("x is %d", x);
}
a) 0
b) 1
c) Junk value
d) Run time error
Disha
What will be the output of the following C code? #include <stdio.h> void main() { static int x; printf("x is %d", x); } a) 0 b) 1 c) Junk value d) Run time error
Telegram
Deepali Sharma in Gate CSE (STAY AT HOME)
What will be the output of the following C code?
#include <stdio.h>
void main()
{
static int x;
printf("x is %d", x);
}
a) 0
b) 1
c) Junk value
d) Run time error
#include <stdio.h>
void main()
{
static int x;
printf("x is %d", x);
}
a) 0
b) 1
c) Junk value
d) Run time error
Forwarded from Disha
Which of following is not accepted in C?
a) static a = 10; //static as
b) static int func (int); //parameter as static
c) static static int a; //a static variable prefixed with static
d) all of the mentioned
a) static a = 10; //static as
b) static int func (int); //parameter as static
c) static static int a; //a static variable prefixed with static
d) all of the mentioned
Disha
Which of following is not accepted in C? a) static a = 10; //static as b) static int func (int); //parameter as static c) static static int a; //a static variable prefixed with static d) all of the mentioned
Telegram
Deepali Sharma in Gate CSE (STAY AT HOME)
Which of following is not accepted in C?
a) static a = 10; //static as
b) static int func (int); //parameter as static
c) static static int a; //a static variable prefixed with static
d) all of the mentioned
a) static a = 10; //static as
b) static int func (int); //parameter as static
c) static static int a; //a static variable prefixed with static
d) all of the mentioned