int *ptr1,i,a[]={10,20,30,40,50,60}; clrscr(); i=0; ptr1 = &a[0]; while(i<=5) { printf("ADDRESS = %u",ptr1); printf("\tELEMENT = %d\n",*ptr1); i++; ptr1++; } getch(); }
E.Commerce
Training@balujalabs
Franchise Section
To input element of a matrix and display them.
To find highest and lowest element in an array.
20. Given an arrays X [6][6] who base address is 100. Calculate the Locations X [2][5] if each elements occupies 4 bytes and array is stored row-wise.