What is the output? int x = 5;
What is the output?
int x = 5;
int *p = &x;
*p = *p + 5;
printf("%d", x);
Show answerHide answer
Correct answer: (D) 10
Explanation
Changing *p changes x.
Correct answer: (D) 10
Explanation
Changing *p changes x.
This is question 130 of DSSSB TGT Computer Science Full Mock Test 2. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.