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

What is setfill c++?

1198


What does ctime() do?

1208


Is string data type in c++?

1080


What are the advantages of pointers?

1116


Write a program to concatenate two strings.

1141


What are put and get pointers?

1181


Can a Structure contain a Pointer to itself?

1200


Is c or c++ more useful?

1097


Are there any special rules about inlining?

1125


What is atoi in c++?

1122


What is the use of bit fields in structure declaration?

1027


Explain about templates of C++.

1197


What are associate containers?

1096


Can we define function inside main in c++?

1064


What apps are written in c++?

1135