Q19: Explain types of modifies in C language Submission.

 

A19: Modifiers are used to modify the data type of variables for changing the range or storage size of variables. There are two primary types of modifiers in C: short and long.

 

1.      short Modifier:

The short modifier is used to reduce the storage size and range of integer variables.

The range of values for a short int is -32,768 to 32,767.

 

2.      long Modifier:

The long modifier is used to increase the storage size and range of integer variables.

A long int typically uses 4 bytes (32 bits) of memory.

The range of values for a long int is -2,147,483,648 to 2,147,483,647.

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.