0
How is the value of integers defined in c?
4 ответов
+ 3
int a = 7;
int b = -5;
+ 2
+ 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.
+ 1
To declare a variable
Datatype variable_name;
To assign a integer
variable_name = value
Example : int num;
num = 10;
Or
int num = 10;