...
Question 4805 – UGC NET CS 2014 Dec-Paper-2
May 22, 2024
Question 4807 – UGC NET CS 2014 Dec-Paper-2
May 22, 2024
Question 4805 – UGC NET CS 2014 Dec-Paper-2
May 22, 2024
Question 4807 – UGC NET CS 2014 Dec-Paper-2
May 22, 2024

Question 4806 – UGC NET CS 2014 Dec-Paper-2

What will be the output of the following ‘C’ code ?
main( )
{
int x=128;
printf (“\n%d”, 1 + x++);
}

Correct Answer: B

Question 11 Explanation: 
In this program we are using post increment. Post increment will send the value before updating the value.
printf(“\n%d”, 1 + x++); /* x=128 */
Here, 1+128=129
A
128
B
129
C
130
D
131
0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x
error: Alert: Content selection is disabled!!