C examples for Data Type:Introduction
Integer data types can easily be displayed using the %d conversion specifier with a printf() statement.
#include <stdio.h> int main()/*www. j av a2s . c om*/ { printf("%d", 55); return 0; }
The %d conversion specifier can also be used to output the contents of a variable declared as integer data type.
#include <stdio.h> int main()// w w w. j a va 2s. c om { int operand1; operand1 = 29; printf("The value of operand1 is %d", operand1); return 0; }