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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c language & why it is used?

769


Why doesn't C support function overloading?

2160


The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

839


What is the heap?

952


What is the difference between volatile and const volatile?

749


What do you understand by normalization of pointers?

816


The difference between printf and fprintf is ?

948


What does sizeof return c?

799


Explain what are compound statements?

810


Why dont c comments nest?

832


How does struct work in c?

808


What is a pointer value and address in c?

815


How can type-insensitive macros be created?

917


What are the benefits of organizational structure?

772


What is scope and lifetime of a variable in c?

765