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

Program to find larger of the two numbers without using if-else,while,for,switch

11 Answers   iNautix, Wipro,


How can I read data from data files with particular formats?

0 Answers  


What do you understand by normalization of pointers?

0 Answers  


what is the stackpointer

2 Answers  


What are terms in math?

0 Answers  






Why malloc is faster than calloc?

0 Answers  


write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 Answers  


What functions are used in dynamic memory allocation in c?

0 Answers  


Can you write a programmer for FACTORIAL using recursion?

0 Answers   ADP,


what is the use of bitfields & where do we use them?

2 Answers  


main() { struct test { char c; int i; char m; } t1; printf("%d %d\n", sizeof(t1), sizeof(t1.c)); }

1 Answers   Vector, Vector India,


here is a link to download Let_Us_C_-_Yashwant_Kanetkar

3 Answers   Microsoft,


Categories