what is meant by the "equivalence of pointers and arrays" in
C?

Answers were Sorted based on User's Feedback



what is meant by the "equivalence of pointers and arrays" in C?..

Answer / nikhil

The meaning of equivalence is to convey that the pointers
and array syntax like ptr[i] *(array +i) can be used
interchangeably.

Is This Answer Correct ?    9 Yes 1 No

what is meant by the "equivalence of pointers and arrays" in C?..

Answer / sameer

name of array(without subscript) points to the first
location of array.
eg. a[10].
a points to first location of array.

Is This Answer Correct ?    1 Yes 3 No

what is meant by the "equivalence of pointers and arrays" in C?..

Answer / shruti

An array is a constant pointer.
a[10] is equivalent to *a..
it is known as base pointer..

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More C Interview Questions

what is the use of c program?

4 Answers   Synergy, Web Synergies,


what is the benefit of c30

2 Answers  


write a program to create a sparse matrix using dynamic memory allocation.

0 Answers  


What is the meaning When we write "#include" what is # and what does include does there???

22 Answers   HCL, Wipro,


Is a house a mass structure?

0 Answers  






Differentiate between declaring a variable and defining a variable?

0 Answers  


What is an arrays?

0 Answers  


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


What are pointers really good for, anyway?

0 Answers  


WAP to find that given no is small or capital

3 Answers  


main() { intj; while9j<=10) { printf("\n%d",j); j=j+1; } }

4 Answers  


Write a C program to fill a rectangle using window scrolling

1 Answers  


Categories