I am trying to find a time_t struct size and what I have got is 4 bytes. Isn't it 8 bytes?
Here you go, for the code;
# include <stdio.h>
# include <iostream>
# include <time.h>
using namespace std;
size_t getPtrSize( char *ptr )
return sizeof( ptr );
lt = time(NULL);
cout << "Date: " << ctime(<) << endl;
cout << "\nThe length of " << ctime(<) << " is: "
<< sizeof ctime(<)
<< "\nThe size of the pointer is "
<< getPtrSize( ctime(<) ) << endl;