What is the value of x in this C code?
void main()
{
int x = 4 *5 / 2 + 9;
}
Answer: C
No answer description available for this question.
Enter details here
What will be the output of the following code?
#include< stdio>
int main()
{
extern int a;
static char j = ‘E’;
printf(“%c %d”, ++j, ++a);
return 0;
}
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int x = 4, y, z;
y = --x;
z = x--;
printf("%d%d%d", x, y, z);
}
Answer: B
No answer description available for this question.
Enter details here
Which among the following is NOT a logical or relational operator?
Answer: D
No answer description available for this question.
Enter details here
What is the value of x after executing the following statement?
int x = 011 | 0x10;
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int a = 5, b = -7, c = 0, d;
d = ++a && ++b || ++c;
printf("\n%d%d%d%d", a, b, c, d);
}
Answer: D
No answer description available for this question.
Enter details here
Which is not a storage class?
Answer: B
No answer description available for this question.
Enter details here
For the following statement find the values generated for p and q?
int p = 0, q = 1;
p = q++;
p = ++q;
p = q--;
p = --q;
Value of p & q are
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int a = -5;
int k = (a++, ++a);
printf("%d\n", k);
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int x = -2;
x = x >> 1;
printf("%d\n", x);
}
Answer: B
No answer description available for this question.
Enter details here