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

Did c have any year 2000 problems?

0 Answers  


tell me the full form of c?

2 Answers  


Why is not a pointer null after calling free?

0 Answers  


matrix multiplication fails introspect the causes for its failure and write down the possible reasons for its failurein c language.

5 Answers   TCS,


pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.

4 Answers   Persistent, Valyoo,


how does the for loop work actually..suppose for the following program how it ll work plz explain to me for(i=5;i>=0;i--) prinf(i--);

19 Answers   RMSI,


20. main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); } Answer:??????

2 Answers  


How can I insert or delete a line (or record) in the middle of a file?

0 Answers  


HOW TO HANDLE EXCEPTIONS IN C

8 Answers  


What is malloc return c?

0 Answers  


What is the difference between getch() and getche()?

1 Answers   NSPL,


sum of two integers values only other then integer it should print invalid input.

1 Answers  


Categories