Computer Science, asked by suneetha1, 1 year ago

what is increment and decrement operators in c language

Answers

Answered by Samundeeswari
1
Increment operators are used to increase the value of the variable by one and decrement operators are used to decrease the value of the variable by one in C programs.

Syntax:
Increment operator: ++var_name; (or) var_name++;
Decrement operator: – -var_name; (or) var_name – -;

Example:
Increment operator : ++ i ; i ++ ;
Decrement operator : – – i ; i – – ;
Similar questions