What is the output of this C code?
int main()
{
int a = 4, n, i, result = 0;
scanf("%d", n);
for (i = 0;i < n> result += a;
}
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int x = 1, z = 3;
int y = x << 3> printf(" %d\n", y);
}
Answer: D
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int c = 2 ^ 3;
printf("%d\n", 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 = 2;
a += b -= a;
printf("%d %d", a, b);
}
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
What is the correct and fully portable way to obtain the most significant byte of an unsigned integer x?
Answer: D
No answer description available for this question.
Enter details here
In case of a conflict between the names of a local and global variable what happens?
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, y = 2;
x /= x / y;
printf("%d\n", x);
return 0;
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int x = 1, y = 0, z = 5;
int a = x && y || z++;
printf("%d", z);
}
Answer: A
No answer description available for this question.
Enter details here
The precedence of arithmetic operators is (from highest to lowest)?
Answer: A
No answer description available for this question.
Enter details here