the bool data type

what is the maximum number of elements a bool array can accomodate in c++ on(32/64)bit compiler??

at most 10^8 actually any data type take at most around 10^8 but it is generally limited to 10^6 or sometimes 10^7 when you declare the array on stack i.e like int a[n] .To declare array with larger size use malloc it uses heap instead of stack and allows larger size declaration