Cyclic property of data type in c
C program:
Output: -126 126
Explanation:
This situation is known as the overflow of signed char.
The range of unsigned char is -128 to 127. If we will assign a value greater than 127 then the value of the variable will be changed to lue if we will move clockwise direction as shown in the figure according to the number. If we will assign a number which is less than -128 then we have to move in the anti-clockwise direction.
0 comments:
Post a Comment