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 / brainless

b) use pointer of last element - pointer of first element + 1

However, we should know the last element's pointer...

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be static in c++?

1098


How would you call C functions from C++ and vice versa?

1172


What are the 4 types of library?

1182


What is a c++ map?

1408


Is it possible to get the source code back from binary file?

1363


What is virtual base class?

1083


What are the advantages of early binding?

1075


What is flush programming?

1015


Define Virtual function in C++.

1096


Write a program to concatenate two strings.

1094


What are the comments in c++?

989


How do I tokenize a string in c++?

1099


How do you compile the source code with your compiler?

1057


What is the iunknown interface?

1129


What are the data types in c++?

947