Question 11520 – Programming

Consider the following ‘C’ language declaration in a[4] = {1,2,3,4}; What would be the output of the following

Printf(“%d”, *(a+2)+1); 

Correct Answer: D

Question 377 Explanation: 
*(a+2)+1 = a[2]+1 = 3+1 = 4
A
2
B
3
C
4
D
None of the above

Leave a Reply

Your email address will not be published. Required fields are marked *

error: <b>Alert: </b>Content selection is disabled!!
Web-Technologies
November 6, 2023
Data-Interpretation
November 6, 2023
Web-Technologies
November 6, 2023
Data-Interpretation
November 6, 2023