You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
362 B
C++
12 lines
362 B
C++
#include <iostream.h>
|
|
#include <conio.h>
|
|
|
|
void main()
|
|
{
|
|
clrscr();
|
|
cout << "Size of char: " << sizeof(char) << " byte" << endl;
|
|
cout << "Size of int: " << sizeof(int) << " bytes" << endl;
|
|
cout << "Size of float: " << sizeof(float) << " bytes" << endl;
|
|
cout << "Size of double: " << sizeof(double) << " bytes" << endl;
|
|
getch();
|
|
} |