What is the real difference between arrays and pointers?

Answer Posted / sankar s

array refer data in memory location , pointer refer address
to the memory location ,pointer refer the pointee
int *a;
int b[10];
a=&b;
where a is the pointer array b is pointee which point out
the starting memory location of an array.

Is This Answer Correct ?    24 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the total generic pointer type?

728


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

1627


What is header file in c?

604


What is main () in c language?

598


What is the best way to store flag values in a program?

580






What is function pointer c?

586


I need previous papers of CSC.......plz help out by posting them.......

1818


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

1633


What is a stream?

651


How do you construct an increment statement or decrement statement in C?

744


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1906


struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer

766


Why is sprintf unsafe?

619


how much salary u want ? why u join in our company? your domain is core sector why u prefer software ?

1507


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1673