which of 'arrays' or 'pointers' are faster?

Answers were Sorted based on User's Feedback



which of 'arrays' or 'pointers' are faster?..

Answer / pushpendra

array is faster than pointer because accessing array elements
by pointers always faster.there is used one array and more pointer.we know pointer is a "value at address".
so pointers stores only address of variable but arrays are stores similar data types.

Is This Answer Correct ?    10 Yes 1 No

which of 'arrays' or 'pointers' are faster?..

Answer / andeep singh

Pointer is faster than array if there is only one pointer used

Is This Answer Correct ?    6 Yes 0 No

which of 'arrays' or 'pointers' are faster?..

Answer / narendra

arrays are very faster because it stores a sequential


block of memory and similar data types

pointers stores only adders of variable

but arrays are stores similar data types

Is This Answer Correct ?    9 Yes 4 No

which of 'arrays' or 'pointers' are faster?..

Answer / s

i think pointers are faster if we talk in terms of element
addition and deletion,the priomary req..

Is This Answer Correct ?    0 Yes 0 No

which of 'arrays' or 'pointers' are faster?..

Answer / sandeep

when compared pointers work fast ,beacause:
1.array too is pointer
eg:char s[20];
gets(s);
here we are supplying base address.
2.array notation will be inter coverted as pointers
where we can directly use pointers.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

12 Answers   MIT, TCS,


What is the advantage of c?

0 Answers  


#include<stdio.h> int fun(); int i; int main() { while(i) { fun(); main(); } printf("hello \n"); return 0; } int fun() { printf("hi"); } answer is hello.how??wat is tat while(i) mean?

7 Answers   Intel,


Explain what is the difference between text files and binary files?

0 Answers  


What are the different types of objects used in c?

0 Answers  






write a program in c language to print your bio-data on the screen by using functions.

0 Answers  


why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

0 Answers  


What is calloc malloc realloc in c?

0 Answers  


What are qualifiers?

0 Answers  


program for reversing a selected line word by word when multiple lines are given without using strrev

0 Answers   IBM,


print out put like this form 1 2 3 4 5 6 3 5 7 9 11 8 12 16 20

8 Answers   TCS,


How can I call a function, given its name as a string?

4 Answers   ABC Telecom,


Categories