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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain goto?

722


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

1596


Why is a semicolon (;) put at the end of every program statement?

632


What is void main ()?

617


Why is void main used?

625






What is a void pointer in c?

613


Explain what are global variables and explain how do you declare them?

645


What is realloc in c?

583


Add Two Numbers Without Using the Addition Operator

357


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

679


What is time complexity c?

575


Is null a keyword in c?

741


Why is c so powerful?

691


What are the __date__ and __time__ preprocessor commands?

579


What is void pointers in c?

596