Report Bug

Qus

What will be the output of the following code?

main() { int c,d, *p1=&c,*p2=&d, x;
c =10,d =4;
x = –3* – *p2 / *p1 + 5;
printf(“%d ”,x);
}
Qus

What will be the output of the following code?

main() { int c,d, *p1=&c,*p2=&d, x;
c =10,d =4;
x = –3* – *p2 / *p1 + 5;
printf(“%d ”,x);
}


A. 6
B. Invalid syntax because / * is used for comments.
C. 8
D. IInvalid syntax because three binary operators can’t be together in an expression.


Solution
B. Invalid syntax because / * is used for comments.



Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad