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 character constants?

710


What are the types of data types and explain?

665


Explain union.

633


Are global variables static in c?

672


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1855






What is the use of linkage in c language?

611


What is scanf () in c?

656


Explain do array subscripts always start with zero?

753


What is pass by reference in c?

605


if p is a string contained in a string?

1404


What is formal argument?

644


any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above

639


What is a double c?

584


in iso what are the common technological language?

1631


What are the different types of C instructions?

669