Why is this 4? Everytime I compile it, its 4.Code:
f = "123456789";
cout << "size of f is " << sizeof(f) << endl;
No matter what I put the value of f to be, it says 4.
I would really like to know how I get the size of a char array like this, any reply appreciated.