I am getting a weird result with these 2 simple lines
char* reverse = (char*) malloc(sizeof(char)*19);
cout << sizeof(reverse)/sizeof(char) << endl;
No matter what number i put in the first line (in this example, it is 19). I always get 4 as the output. What is wrong ? Thanks.