The output of the code below is
void main()
{
int k = m();
printf("%d", k);
}
void m()
{
printf("hello");
}
The output of the code below is
int *m()
{
int *p = 5;
return p;
}
void main()
{
int *k = m();
printf("%d", k);
}
The output of the code below is
int *m();
void main()
{
int *k = m();
printf("hello ");
printf("%d", k[0]);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
The output of the code below is
int *m();
void main()
{
int k = m();
printf("%d", k);
}
int *m()
{
int a[2] = {5, 8};
return a;
}
The output of the code below is
void m(int k)
{
printf("hi");
}
void m(double k)
{
printf("hello");
}
void main()
{
m(3);
}
What is the default return type if it is not specified in function definition?
What is the output of this C code?
int foo();
int main()
{
int i = foo();
}
foo()
{
printf("2 ");
return 2;
}
What is the output of this C code?
double foo();
int main()
{
foo();
return 0;
}
foo()
{
printf("2 ");
return 2;
}
functions can return structure in c?
functions can return enumeration constants in c?
What is the output of code given below?
enum m{JAN, FEB, MAR};
enum m foo();
int main()
{
enum m i = foo();
printf("%d\n", i);
}
int foo()
{
return JAN;
}
What is the output of this C code?
void main()
{
m();
printf("%d", x);
}
int x;
void m()
{
x = 4;
}
What is the output of this C code?
int x;
void main()
{
printf("%d", x);
}