Monday, 8 December 2014

C Program to print integer range

Program to print integer range
#include<stdio.h>
main()
{
signed short int i;
i=32767;
printf("i=%hd\n",i);
i++;
printf("i=%hd\n",i);
}
OutPut:
madan@madan-Lenovo-G570:~/madan$ cc ex39.c
madan@madan-Lenovo-G570:~/madan$ ./a.out
i=32767
i=-32768
Program for Logical operations checking