#include <iostream>
#include <climits>
#include <cfloat>
using namespace std;

int main(){
	cout<<"Max Int: "<<INT_MAX<<endl;
	cout<<"Max Long Long: "<<LLONG_MAX<<endl;
	cout<<"Max Float: "<<FLT_MAX<<endl;
	/*
	cout<<"Giving 10 MB to Stack..."<<endl;
	char srackArray[10000000];
	stackArray[0]='A';
	cout<<"Done!"<<endl;
	Το παραπανω κρασαρει το προγραμμα
	*/
	cout<<"Giving 500 MB to Heap..."<<endl;
	char *heapArray=new char[500000000];
	heapArray[0]='H';
	heapArray[499999999]='P';
	cout<<"Success! First letter: "<<heapArray[0]<<", Last: "<<heapArray[499999999]<<endl;
	delete[] heapArray;
	cout<<"Memory of Heap cleared."<<endl;
	return 0;
}
