Incrementing: prefix and postfix - C Operator

C examples for Operator:Increment Decrement Operator

Description

Incrementing: prefix and postfix

Demo Code

#include <stdio.h>

int main(void){
    int ultra = 0, super = 0;
    /*ww w .  jav  a  2s.co m*/
    while (super < 5){
        super++;
        ++ultra;
        printf("super = %d, ultra = %d \n", super, ultra);
    }
    
    return 0;
}

Result


Related Tutorials