281 views

1 Answer

2 votes
2 votes
*** If the given code fragment is printed correctly in the question***

The pointer ptrint is holding the address of the array int_array.

As there is no body of the 'for' loop, the next successive statement will be the only statement associated with the 'for' loop.

​Then according to t​he code given, in the for loop, first the value will be printer which is pointed by the pointer & then post increment operator will act & hence increase the address of the pointer by 1, which means that the pointer will point to the next element in the array.

Hence, the program will print the array values followed by a new line.

Output will be:

31

54

77

52

93

End Of Program.

 

Therefore, either the given options are all incorrect or there is some printing mistake in the question's code fragment.

 

*** DO UPVOTE IT IF YOU'LL LIKE IT ***

Related questions

0 votes
0 votes
1 answer
1
2 votes
2 votes
1 answer
4