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

What is the Maximum Size that an Array can hold?

Answer Posted / chandra

On Windows platform (32 bit) the max array size is FFFFFFFF.


so if you give int arr[0x3FFFFFFF]; it works in VC++.

and if you try arr[0x40000000]; it gives following error:

error C2148: total size of array must not exceed ffffffff
bytes


We came to this value(3FFF FFFF) by dividing FFFFFFFF (2
power 32) by 4 because each int is 4 byte. so for char
array this value will be full FFFF FFFF.

Is This Answer Correct ?    54 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class and structure in c++?

1257


Which software is used to run c++ program?

1048


Is it possible for a member function to delete the pointer, named this?

1245


Difference between an inspector and a mutator

1393


Can recursive program be written in C++?

1273


Write a function that swaps the values of two integers, using int* as the argument type?

1084


Is it possible to use a new for the reallocation of pointers ?

1123


What language does google use?

1245


Write a Program for find and replace a character in a string.

1133


What is class in c++ with example?

1374


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

1053


What are the advantages of using pointers in a program?

1194


What is c++ prototype?

1313


Describe the advantages of operator overloading?

1081


What is the size of integer variable?

1102