retagged by
131 views
0 votes
0 votes
let suppose address of first index of array is n and size of each block of array is u. then the index of second element is a+u.

let suppose the array has m elements.

what will be the address of the third element of another array of same size, if it's address of second last element is (n - u).
retagged by

Please log in or register to answer this question.

Related questions

2.0k
views
2 answers
3 votes
pawan kumarln asked Jul 29, 2017
2,010 views
a)why base address of array can not be change but string constant base address can be change???b)why content of array can be change but string constant content can not be...
225
views
1 answers
0 votes
Debargha Mitra Roy asked Apr 16
225 views
#include <stdio.h int main() { int a[3] = {1, 3, 5, 7, 9, 11}; int *ptr = a[0]; ptr += sizeof(int); printf("%d", *ptr); return 0; }(Assume size of int to be $2$ bytes.)T...
664
views
1 answers
7 votes
GO Classes asked Feb 5
664 views
Consider the following C code:double A [3] = {{1, 2, 3}, {4, 5, 6}};Assume that A[0] = 0xFFAA0000 and the sizeof(double) is 8.What will be the value of A ?0xFFAA00240x...
358
views
1 answers
1 votes
Mrityudoot asked Feb 2
358 views
In what cases does an uninitialized array have values = 0 and for which cases does it have values = garbage values. How to differentiate?