Explain can you assign a different address to an array tag?



Explain can you assign a different address to an array tag?..

Answer / Bushra Khan

In C language, arrays are stored in contiguous memory locations. The first element of an array is stored at the base address and subsequent elements are stored in increasing memory addresses. Therefore, it is not possible to directly assign a different address to an array. However, you can use pointers to manipulate the memory location of an array.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

3 Answers  


what is the output of the code and how? main() { int *ptr,x; x=sizeof(ptr); printf("%d",x); }

1 Answers  


which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above

1 Answers  


what is void pointer?

2 Answers  


Is python a c language?

1 Answers  


#include<stdio.h> int main( ) { Int a=300, b, c; if(a>=400) b=300; c=200; printf(“%d%d ”, b, c); return0; }

1 Answers  


write a own function for strstr

1 Answers   LG Soft,


What is a buffer in c?

1 Answers  


What is the significance of c program algorithms?

1 Answers  


write a program in c to find out the sum of digits of a number.but here is a condition that compiler sums the value from left to right....not right to left..

1 Answers  


What is modifier & how many types of modifiers available in c?

1 Answers  


Explain argument and its types.

1 Answers  


Categories