#include <iostream>
using namespace std;
int main()
{
double d;
char c;
int i;
float f;
cout << "Size of double is: " <<
sizeof(d) <<"\n";
cout << "Size of char is: " <<
sizeof(c) <<"\n";
cout << "Size of int is: " <<
sizeof(i) <<"\n";
cout << "Size of float is: " <<
sizeof(f) <<"\n";
return 0;
}
Comments
Leave a comment