What will be the output of the following program?
#include< stdio>
int main()
{
register int I = 2;
static char ch = ‘A’;
auto float j;
int k;
k = ++ch && I;
k = ++ch;
j = i-- + ++k * 2;
printf(“%d %f”, k , j);
return 0;
}
Answer: C
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()
{
int a = 10, b = 2, c;
a = !( c = c == c) && ++b;
c += ( a + b- -);
printf( “ %d %d %d”, b, c, a);
return 0;
}
Answer: A
No answer description available for this question.
Enter details here
What will be the output of the following code?
static int I = 5;
main()
{
int sum = 0
do
{
sum + = (1/i);
}while(0 < I> printf(“sum of the series is %d”, sum);
}
Answer: C
No answer description available for this question.
Enter details here
What is the difference between the following 2 codes?
//Program 1
int main()
{
int d, a = 1, b = 2;
d = a++ + ++b;
printf("%d %d %d", d, a, b);
}
//Program 2
int main()
{
int d, a = 1, b = 2;
d = a++ + ++b;
printf("%d %d %d", d, a, b);
}
Answer: A
No answer description available for this question.
Enter details here
Are logical operators sequence points?
Answer: A
No answer description available for this question.
Enter details here
Result of a logical or relational expression in C is?
Answer: B
No answer description available for this question.
Enter details here
What is the value of the following expression?
i = 1;
i = ( I< <= 1 % 2)
Answer: A
No answer description available for this question.
Enter details here
Expression x % y is equivalent to____?
Answer: B
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, c;
c = a++ + b;
printf("%d, %d", a, b);
}
Answer: B
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int x = -2;
if (!0 == 1)
printf("yes\n");
else
printf("no\n");
}
Answer: A
No answer description available for this question.
Enter details here