What is the real difference between arrays and pointers?

Answers were Sorted based on User's Feedback



What is the real difference between arrays and pointers?..

Answer / subhasmita swain

arrays stores a block of contigious memory .where as
Pointers are save the base address of the block of
memory,it may be a array of datas.pointers can resize them
shelves by pointing to a different block of memory,in
contrast arrays are fixed size.

Is This Answer Correct ?    5 Yes 3 No

What is the real difference between arrays and pointers?..

Answer / vipul singh

there is only a single difference between array and pointer,
in c lang array is limited(limited in the sense,define the
size at complie time) while pointer are upto memory location.
array and pointer both point to the initial
address.

if somebody says it is wrong so pls tell me the correct
difference.
im vipul from jaipur doing MCA 2nd sem.
my email id is vipul.fifteen@yahoo.com

Is This Answer Correct ?    4 Yes 2 No

What is the real difference between arrays and pointers?..

Answer / ajay kumar

The name of the array represents the base address of the array. Thus, the name of the array can be used effectively as any other pointer to an array in accessing the elements of the array.

Is This Answer Correct ?    2 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / ravi

Array is simply collecton of similar datatype and the pointer is a variable that represents the location of that data.

Is This Answer Correct ?    2 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / bhavani.p

Array is slow,array refer data in memory location.
Pointer is fast,pointer refer address to the memory location....

Is This Answer Correct ?    2 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / revathi

Array supports static memory allocation in the sense the memory size is allocated before it can use
Pointer supports dynamic memory allocation in the sense the memory is resized

Is This Answer Correct ?    2 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / saurabh agarwal

array name is a unmodifiable lvalue whereas pointer is a modifiable l value

Is This Answer Correct ?    1 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / shubham arora

1-through pointers we can access data directly while in array we have to traverse the whole array for accessing particular data.
2- due to above reason accessing through pointers is fast than
array.

Is This Answer Correct ?    1 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / anu yadav

array can be of any size whereas pointer is always of 2 byte......

Is This Answer Correct ?    1 Yes 0 No

What is the real difference between arrays and pointers?..

Answer / sachin.r

Arrays allocate the memory during compile time.
Pointers allocate the memory during runtime.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Interview Questions

Are the variables argc and argv are local to main?

0 Answers   TISL,


How many types of functions are there in c?

0 Answers  


What is openmp in c?

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 is data structure in c and its types?

0 Answers  






What is a node in c?

0 Answers  


Is calloc better than malloc?

0 Answers  


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

0 Answers  


Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

0 Answers  


main() { int i; for(i=0;i<5;i++) printf("%d",1l<<i); } why doesn't 'l' affect the code??????

1 Answers  


I need to take a sentence from input and sort the words alphabetically using the C programming language. Note: This is C not C++. qsort and strtok not allowed

4 Answers   Aspire,


Design a program using an array that searches a number if it is found on the list of the given input numbers and locate its exact location in the list.

4 Answers  


Categories