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...

How can you quickly find the number of elements stored in a
a) static array b) dynamic array ?

Answer Posted / murali

for static array start from highest index to lowest (
normal conditions apply*)
if dynamic array is a Container type, size() / length()
will do. if not process the nodes.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we use this pointer inside static member function?

1074


What is encapsulation in c++?

1299


What is abstraction c++?

1014


Explain the difference between static and dynamic binding of functions?

1076


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

1034


Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

1110


Difference between inline functions and macros?

1051


Which operator cannot be overloaded c++?

1020


What is the size of integer variable?

1066


Is C++ case sensitive a) False b) Depends on implementation c) True

1084


Difference between delete and free.

1081


How to access a variable of the structure?

1097


What is ifstream c++?

1031


What return value must conversion operators have in their declaration?

1096


Can I learn c++ in a week?

1078