What is the real difference between arrays and pointers?

Answer Posted / johnson

Down at the lowest level, they both store addresses, there is
no difference. The difference is simply how the C language
allows you to use them, specially with multi dimensional
arrays. Single dimemsion arrays and pointers are practically
interchangeable.

Is This Answer Correct ?    37 Yes 47 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What kind of structure is a house?

562


How can I call fortran?

648


What is linear search?

679


What is function pointer c?

589


What does it mean when the linker says that _end is undefined?

638






What does a pointer variable always consist of?

667


Why can't I perform arithmetic on a void* pointer?

640


How is a null pointer different from a dangling pointer?

562


How are portions of a program disabled in demo versions?

757


Why is c faster?

596


#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }

776


number of times a digit is present in a number

1545


What is the function of this pointer?

681


What is getch c?

860


Are pointers integers in c?

615