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;
printf(“%d”, x);
{
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()
{
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()
{
m();
printf(“%d”, x);
}
int 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 *m();
void main()
{
int *k = m();
printf(“hello “);
printf(“%d”, k[0]);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
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 *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf(“%d”, k);
}
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 m()
{
printf(“hello”);
}
void main()
{
int k = m();
printf(“%d”, k);
}
What will be the output of the following C code? #include < stdio.h >
View Question
What is the problem in the following C declarations?
int func(int);
double func(int);
int func(float);
What is the problem in the following C declarations? int func(int); double ...
View Question
What will be the data type returned for the following C function?
#include < stdio.h >
int func()
{
return (double)(char)5.0;
}
What will be the data type returned for the following C function? #include < ...
View Question
What will be the output of the following C code having void return-type function?
#include < stdio.h >
void foo()
{
return 1;
}
void main()
{
int x = 0;
x = foo();
printf(“%d”, x);
}
What will be the output of the following C code having void return-type function? ...
View Question