What is the output of this C code?
void main()
{
int x = 97;
int y = sizeof(x++);
printf("X is %d", x);
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
if (~0 == 1)
printf("yes\n");
else
printf("no\n");
}
Answer: B
No answer description available for this question.
Enter details here
Which of the following statement is correct about the code snippet given below?
#include < stdio>
int main()
{
float z = 12.35, c = 10;
if( ++z -z)
c += z;
else
c - = z;
printf( “%f %f”, z, c);
return 0;
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int i = 0;
int j = i++ + i;
printf("%d\n", j);
}
Answer:
Enter details here
What is the output of this C code?
int main()
{
int a = 20;
double b = 15.6;
int c;
c = a + b;
printf("%d", c);
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int a = 1, b = 1, d = 1;
printf("%d, %d, %d", ++a + ++a+a++, a++ + ++b, ++d + d++ + a++);
}
Answer: A
No answer description available for this question.
Enter details here
What will be the output of the following code snippet?
Y = 5;
if (! Y > 10)
X = Y + 3;
else
X = Y + 10;
printf(“ X = %d Y = %d”, X, Y);
Answer: A
No answer description available for this question.
Enter details here
Which of the following statement is correct about the code snippet given below?
num = 5;
printf( “%d”, ++num++ );
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
unsigned int a = 10;
a = ~a;
printf("%d\n", a);
}
Answer: C
No answer description available for this question.
Enter details here
For which of the following situation should the register storage class be used?
Answer: B
No answer description available for this question.
Enter details here