C | Advanced Pointer | Question 4
(A) TEST sQuiz Z CQ
(B) MCQ Quiz Z CQ
(C) TEST Quiz Z CQ
(D) GarbageValue sQuiz Z CQ
Explanation: Let us first consider **++cpp. Precedence of prefix increment and de-reference is same and associativity of both of them is right to left. So the expression is evaluated as **(++cpp). So cpp points to c+2. So we get “TEST” as output. Note the de-reference operator twice.
Similarly, you may try other expressions yourself with the help of precedence table.
Quiz of this Question
My Personal Notes arrow_drop_up
Please Login to comment...