Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Do pointers need to be initialized?

1164


Discuss the function of conditional operator, size of operator and comma operator with examples.

1216


What is the purpose of main() function?

1308


What is the use of static variable in c?

1145


What are derived data types in c?

1133


What is the difference between int main and void main?

1101


code for replace tabs with equivalent number of blanks

2216


How can I send mail from within a c program?

1078


What kind of structure is a house?

1101


What do you mean by invalid pointer arithmetic?

1132


What is static volatile in c?

1077


Why can arithmetic operations not be performed on void pointers?

1097


What are the similarities between c and c++?

1140


Explain what is the difference between a string and an array?

1227


How do c compilers work?

1199