//Write a c program to demonstrate the int data type ..

Int data type :




//Write a c program to demonstrate the int data type .. 

#include<stdio.h>
int main()
{
short int a=b;
int b=20;
long int c=3021456;
unsigned short int d=2;
unsigned int e=635;
unsigned long int f=987654321;
printf("the value of short int is %d\n",a);
printf("the value of int is %d\n",b);
printf("the value of long int is %d\n",c);
printf("the value of unsigned short int is %hu\n",d);
printf(" the value of unsigned int=%u\n",e);
printf(" the value of unsigned int =%lu\n",f);
}


Post a Comment

Please Select Embedded Mode To Show The Comment System.*

Previous Post Next Post