- 1

what is the size of operate? assume size of (int)=2 #include <iostream. h> using namespace std ; class test { int x_ ; int y_; } ; int main() { test t ; court<<size of (t)<<" ; }

12th Aug 2016, 8:37 AM
Santhosha S R
Santhosha  S R - avatar
2 Réponses
+ 1
Of Course It Should Be cout .. Not court ... May Be Typing Error ... The Statement Must Be cout<<sizeof(t)<<" "; Then The Output Will Be 4
12th Aug 2016, 9:53 AM
Shashank Pai
Shashank Pai - avatar
0
There is cout not court
12th Aug 2016, 8:59 AM
ashvinee
ashvinee - avatar