Declaring Integer Types: long, short, unsigned int, long long - C Data Type

C examples for Data Type:int

Introduction

Other integer types are declared in the same manner as the int type.

Demo Code

 
#include <stdio.h>
int main(void)
{
  long int a; 
  long b; /*from   w w  w.j  a v a  2  s. co  m*/
  short int c; 
  short d; 
  unsigned int e; 
  unsigned f; 
  unsigned long g; 
  unsigned short h; 
  long long i;     
  
  printf("done");
    
  return 0;
}

Result


Related Tutorials