C Program to see use of long, short

Program to see size of short/long basic data types.

Output: 

Check truncation from integer to short integer.

Output:

Do you expect this result. Why was the value of snum1 truncated ?

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *