Data Types & Variables
Автор: UrbanOz Explorer
Загружено: 2024-03-12
Просмотров: 6
Описание:
This is a C programming for beginners second video. It is based on data types & variables.
In C programming, data types are used to define the type of data that a variable can store. Each variable in C must have a specific data type, which determines the size and format of the data it can hold. Here are some of the basic data types in C:
int:
Size: 4 bytes
Range: -2,147,483,648 to 2,147,483,647
Example: int age = 25;
float:
Size: 4 bytes
Precision: 6 decimal places
Example: float height = 5.8;
double:
Size: 8 bytes
Precision: 15 decimal places
Example: double salary = 50000.75;
char:
Size: 1 byte
Range: -128 to 127 or 0 to 255 (if unsigned)
Example: char grade = 'A';
#programming #cforbeginners
First Lecture Link: • Introduction
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: