What will be the output of the following code snippet?
Answer Here :-
Syntax Error
Description:-
This is an example of accessing an array element through pointer notation. So *(a + i) is equivalent to a[i], and we are adding all the even indices elements, and subtracting all the elements at odd indices, which gives a result of 3.
C program | What will be the output of the following code snippet? | Interview bit
Reviewed by •∆•HACKER'S ON•∆•
on
February 17, 2022
Rating:
No comments: