Skip to content

Commit 449fc67

Browse files
Create size_hugh
1 parent 17e84e2 commit 449fc67

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

size_hugh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <iostream>
2+
#include <string>
3+
using namespace std;
4+
5+
int main()
6+
{
7+
cout << "char: " << sizeof(char) << endl;
8+
cout << "int: " << sizeof(int) << endl;
9+
cout << "float: " << sizeof(float) << endl;
10+
cout << "double: " << sizeof(double) << endl;
11+
int var = 50;
12+
cout << "var: " << sizeof(var) << endl;
13+
14+
string(hughjackman) ;
15+
cout<<"hugh jackman "<<sizeof(hughjackman);
16+
17+
return 0;
18+
}

0 commit comments

Comments
 (0)