-3
Class Time{ 
int hour, min, sec; 
Time(){}; 
Time(int h,int m, int s){ 
hour = h; 
min = m; 
sec = s; 
} 
void printTime(){ 
cout<<hr<<”:”<<min<<”:”<<sec; 
} 
} 

I just want to know what is the size of objects in this class ?

Ronald
  • 1
  • 2

1 Answers1

0

I would try something like this:

Time timeObject;
int size = sizeof(timeObject);
Nowax
  • 347
  • 3
  • 15