0

How is the value of integers defined in c?

21st Aug 2021, 11:43 AM
Shantanu Alanjkar
4 ответов
+ 3
int a = 7; int b = -5;
21st Aug 2021, 12:10 PM
SAN
SAN - avatar
21st Aug 2021, 12:58 PM
SoloProg
SoloProg - avatar
+ 2
Shantanu Alanjkar , i am not sure if my post is that what you expect to get. may be you mean: how to declare and initialize an integer variable ? have a look at the tutorial: https://www.tutorialspoint.com/cprogramming/c_data_types.htm you can find there details of standard integer types with their storage sizes and value range.
21st Aug 2021, 1:45 PM
Lothar
Lothar - avatar
+ 1
To declare a variable Datatype variable_name; To assign a integer variable_name = value Example : int num; num = 10; Or int num = 10;
1st Sep 2021, 4:04 PM
Ajay Manivannan