Which of the following is true about return type of functions in C?
1 Crore+ students have signed up on EduRev. Have you? Download the App |
Consider the following C declaration
struct {
short s[5];
union {
float y;
long z;
}u;
} t;
Assume that objects of the type short, float and long occupy 2 bytes, 4 bytes and 8 bytes, respectively. The memory requirement for variable t, ignoring alignment considerations, is
#include <stdio.h>
int main()
{
int i = 3;
printf("%d", (++i)++);
return 0;
}
What is the output of the above program?
Find the Output ?
#include<stdio.h>
int main()
{
int x, y = 5, z = 5;
x = y == z;
printf("%d", x);
getchar();
return 0;
}
Which file is generated after pre-processing of a C program?
Which of the following is not a storage class specifier in C?
#include <stdio.h>
#if X == 3
#define Y 3
#else
#define Y 5
#endif
int main()
{
printf("%d", Y);
return 0;
}
What is the output of the above program?
#include <stdio.h>
// Assume base address of "EduRevQuiz" to be 1000
int main()
{
printf(5 + "Quiz");
return 0;
}