Define the increment operator?With example
Please solution this answer
Answers
Answered by
1
Answer:
I hope you are satisfied with my ans
Explanation:
Increment and decrement operators are unary operators that add or subtract one, to or from their operand, respectively. They are commonly implemented in imperative programming languages. ... The increment operator increases, and the decrement operator decreases, the value of its operand by 1.
Answered by
1
Answer:
Increment operator can be demonstrated by an example: #include <stdio.h> int main() { int c=2, d=2; printf("%d\n", c++); // this statement displays 2, then c is incremented by 1 to 3. printf("%d", ++c); // this statement increments c by 1, then c is displayed.
Similar questions