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

write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]

7 Answers  


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

0 Answers  


Why do we use null pointer?

0 Answers  


Tell me a C program to display the following Output? 1 1 1 1 1 2 2 2 2 3 3 3 4 4 5

3 Answers  


main() { int i; printf("%d",((i=1)*i-- - --i*(i=-3)*i++ + ++i)); } ans is 24 bt how?pls tell smbody............

3 Answers  






What is volatile, register definition in C

0 Answers   Cognizant,


Why is %d used in c?

0 Answers  


What are different types of variables in c?

0 Answers  


how to swap two integers 1 and 32767 without using third variable

11 Answers   Microsoft, TCS,


Find string palindrome 10marks

5 Answers   Honeywell, Infosys, Riktam, Roland,


#ifdef TRUE int I=0; #endif main() { int j=0; printf("%d %d\n",i,j); }

3 Answers   ADITI,


what is the need for main function in c?

5 Answers  


Categories