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
→
C Program
→
C Fundamentals
→
What will be the output of the following code frag...
1.
What will be the output of the following code fragment?void main(){ printf("%x",-1
A.
fff0
B.
fff1
C.
fff2
D.
fff3
E.
fff4
Answer» B. fff1
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Consider the following program fragment, and choose the correct onevoid main(){int a, b = 2, c;a = 2 * (b++);c = 2 * (++b);}
Choose the correct output for the following program.#includevoid main(){int a=10, b=11, c=13, d;d = (a=c, b+=a, c=a+b+c);printf("%d %d %d %d", d, a, b, c);}
Determine output of the following program code.#includevoid main(){int a, b=7;a = b1 : a;printf("%d %d", a, b);}
Find the output of the following program.#includevoid main(){int y=10;if(y++>9 && y++!=11 && y++>11)printf("%d", y);elseprintf("%d", y);}
Find the output of the following program.#includevoid main(){int y=10;if(y++>9 && y++!=10 && y++>11)printf("%d", y);elseprintf("%d", y);}
void main(){int a=10, b;b = a++ + ++a;printf("%d %d %d %d", b, a++, a, ++a);}what will be the output when following code is executed?
Identify the correct output of the following code:void main(){int w=10, x=5, y=3, z=3;if( (w < x ) && (y=z++) )printf("%d %d %d %d", w, x, y, z);elseprintf("%d %d %d %d", w, x, y, z);}
What will be the output of the following code fragment?void main(){printf("%x",-1
What will be the output?void main(){int a=10, b=20;char x=1, y=0;if(a,b,x,y){printf("EXAM");}}
Determine output:void main(){int i=10;i = !i>14;printf("i=%d", i);}
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