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

Lists the benefits of c programming language?

0 Answers  


what does " calloc" do?

7 Answers   Cadence, Logos,


Who is invented by c?

24 Answers   Infosys, Mphasis,


how to print this sereis 2 4 3 6 5..........?

3 Answers  


where do we use volatile keyword?

1 Answers  






Is anything faster than c?

0 Answers  


What is an object?

5 Answers  


explain what are pointers?

0 Answers  


a.One Cannot Take the address of a Bit Field b.bit fields cannot be arrayed c.Bit-Fields are machine Dependant d.Bit-fields cannot be declared as static Which of the Following Statements are true w.r.t Bit-Fields A)a,b&c B)Only a & b C)Only c D)All

3 Answers   Accenture, Digg.com,


program to convert a integer to string in c language'

0 Answers  


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

0 Answers  


Explain about C function prototype?

0 Answers  


Categories