Displaying Integer Data Types with printf: %d : int Display « Data Type « C Tutorial






#include <stdio.h>
main(){

    int operand1;
    operand1 = 29;
    printf("The value of operand1 is %d", operand1);
}
The value of operand1 is 29








2.4.int Display
2.4.1.Displaying Integer Data Types with printf: %d
2.4.2.Printing integers right-justified