p++ executes faster than p + 1 since
Answer: B
No answer description available for this question.
Enter details here
Comment on the output of this C code?
int main()
{
int i, n, a = 4;
scanf("%d", &n);
for (i = 0; i < n> a = a * 2;
}
Answer: B
No answer description available for this question.
Enter details here
Where will the space be allocated for an automatic storage class variable?
Answer: C
No answer description available for this question.
Enter details here
Which is executed quickly?
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
void main()
{
int x = 0;
if (x = 0)
printf("Its zero\n");
else
printf("Its not zero\n");
}
Answer: A
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int a = 2;
if (a >> 1)
printf("%d\n", a);
}
Answer: C
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
if (7 & 8)
printf("Honesty");
if ((~7 & 0x000f) == 8)
printf("is the best policy\n");
}
Answer: C
No answer description available for this question.
Enter details here
Which of the following is not a compound assignment operator?
Answer: D
No answer description available for this question.
Enter details here
What is the output of this C code?
int main()
{
int x = 2, y = 1;
x *= x + y;
printf("%d\n", x);
return 0;
}
Answer: D
No answer description available for this question.
Enter details here
What will be the storage class of variable I in the code written below?
#include< stdio>
int main()
{
int I = 10;
printf(“%d”, i);
return 0;
}
Answer: A
No answer description available for this question.
Enter details here