/
GapiGap
/
lesson_7.1
Обзор
Документация
Войти
/
GapiGap
/
lesson_7.1
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
main.cpp
33 строки
1 KB
GapiGap
upload files
29 май 2025, 23:40
29 май 2025, 23:40
e943bb6
Код
Авторство
О чём код?
#include<iostream> #include<string> //����� ����� ������������ �������, �� ������������ ��� �������� � ������, ��� ���� ������������ ��������� ������� //���� ��� ����� ����, �� �� ����� �� ���������. int main() { setlocale(LC_ALL, "ru"); int intVariable; std::cout << "int: " << &intVariable << " " << sizeof(int) << std::endl; short shortVariable; std::cout << "short: " << &shortVariable << " " << sizeof(short) << std::endl; long longVariable; std::cout << "long: " << &longVariable << " " << sizeof(long) << std::endl; long long long_longVariable; std::cout << "long long: " << &long_longVariable << " " << sizeof(long long) << std::endl; float floatVariable; std::cout << "float: " << &floatVariable << " " << sizeof(float) << std::endl; double doubleVariable; std::cout << "double: " << &doubleVariable << " " << sizeof(double) << std::endl; long double long_doubleVariable; std::cout << "long double: " << &long_doubleVariable << " " << sizeof(long double) << std::endl; bool boolVariable; std::cout << "bool: " << &boolVariable << " " << sizeof(bool) << std::endl; }