Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

C Increment and Decrement Operators

// Working of increment and decrement operators
#include <stdio.h>
int main()
{
    int a = 10, b = 100;
    float c = 10.5, d = 100.5;

    printf("++a = %d 
", ++a);
    printf("--b = %d 
", --b);
    printf("++c = %f 
", ++c);
    printf("--d = %f 
", --d);

    return 0;
}
Source by techtechinfo.com #
 
PREVIOUS NEXT
Tagged: #C #Increment #Decrement #Operators
ADD COMMENT
Topic
Name
8+4 =