What will be the output of the following C code? #include < stdio.h >
View Question
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 output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int x;
void main()
{
m();
printf(“%d”, x);
}
void m()
{
x = 4;
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
int x = 5;
void main()
{
int x = 3;
m();
printf(“%d”, x);
}
void m()
{
x = 8;
n();
}
void n()
{
printf(“%d”, x);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What will be the output of the following C code?
#include < stdio.h >
void main()
{
int x = 3;
{
x = 4;
printf(“%d”, x);
}
}
What will be the output of the following C code? #include < stdio.h >
View QuestionArray sizes are optional during array declaration by using ______ keyword.
a) auto b) static c) extern d) register Answer: c
View Question
What will be the sequence of allocation and deletion of variables in the following C code?
#include < stdio.h >
int main()
{
int a;
{
int b;
}
}
What will be the sequence of allocation and deletion of variables in the following C code? ...
View Question
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;
}
}
Comment on the following 2 C programs. #include < stdio.h > //Program 1 ...
View Question
Which variable has the longest scope in the following C code?
#include < stdio.h >
int b;
int main()
{
int c;
return 0;
}
int a;
Which variable has the longest scope in the following C code? #include < stdio.h ...
View Question
Comment on the output of the following C code.
#include < stdio.h >
int main()
{
int i;
for (i = 0;i < 5; i++)
int a = i;
printf(“%d”, a);
}
Comment on the output of the following C code. #include < stdio.h > ...
View Question