MCQOPTIONS
Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Testing Subject
General Aptitude
Logical and Verbal Reasoning
English Skills Ability
Technical Programming
Current Affairs
General Knowledge
Finance & Accounting
GATE (Mechanical Engineering)
Chemical Engineering
→
Programming Language (MCQ) questions
→
Algorithms
→
Trace the output.void main(){ printf("%d",-5%3);}
1.
Trace the output.void main(){ printf("%d",-5%3);}
A.
1
B.
2
C.
-2
D.
2.5
Answer» D. 2.5
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
What will be the output of the following program?void main(){ int x=300*400/300; printf("%d",x);}
Trace the output.void main(){ printf("%d",-5%3);}
Trace the output.void main(){ int x=10,y=20; x=!x; y=!y; printf("x=%d , y=%d",x,y); }
Trace the output.void main(){ int x=-5,y,num=5; y=x%-4; y=(y?0:num*num); printf("%d",y); }
Which of the following operation can be applied to pointer variable?
Trace the output.#define no 5+3int main(){int result;result=no*no*no;printf("%d",result); return 0;}
Trace the output.int main(){int a=5;printf("%d %d %d", a ,a++, ++a); return 0;}
What is keywords in c?
What would be the equivalent pointer expression for referring the array?arr[p][q][r][m]
Trace the output.int main(){char *str="careerride";printf("%d",printf("%s",str));return 0;}
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies