" Life is not a problem to be solved but a reality to be experienced! "
© Copyright 2013 - 2025 KUDO.TIPS - All rights reserved.
#include <conio.h>
main()
{
char znak;
cout << "Wielkosc roznych typow danych wyrazona w bajtach:\n";
cout << "typ znakowy CHAR: \t\t" << sizeof(char) << endl;
cout << "typ calkowity SHORT INT: \t" << sizeof(short) << endl;
cout << "typ calkowity INT: \t\t" << sizeof(int) << endl;
cout << "typ calkowity LONG INT: \t" << sizeof(long) << endl;
cout << "typ rzeczywisty FLOAT: \t\t" << sizeof(float) << endl;
cout << "typ rzeczywisty DOUBLE: \t" << sizeof(double) << endl;
cout << "typ rzeczywisty LONG DOUBLE:\t" << sizeof(long double) << endl;
cout << "\n\n";
cout << "Wyswietlanie roznych znakow:\n";
znak='\\';
cout << znak << "\n";
znak='\'';
cout << znak << endl;
znak=97;
cout << znak << endl;
znak='a';
cout << znak << endl;
znak='"';
cout << znak << " ";
znak='\'';
cout << znak << " ";
znak='\\';
cout << znak << endl;
getch();
}