reshown by
980 views
0 votes
0 votes

reshown by

1 Answer

1 votes
1 votes

Answer is 1006.

In the mentioned problem S represents the base address of ths $s[0]^{th}$ element. But when &S is used it represents the base address of entire set. So (&S+1) represents address after skipping one set. Here one set contains 6 elements of size 1 B. :)

For more clarity refer ->

https://ideone.com/dUcgjo (Here int is 4B and array is 2D)

https://ideone.com/jv5rf3 (Here pointer is 8B )

edited by

Related questions

–2 votes
–2 votes
0 answers
2
Sunil8860 asked Sep 21, 2017
360 views
0 votes
0 votes
0 answers
3
abhinowKatore asked Dec 5, 2022
632 views
What will be the return value of the below function, if it is called a sample(4)? int sample(int x){ if( x == 0 || x ==2) return 1; return (sample( x) * (x ));}
0 votes
0 votes
2 answers
4