explain briefly incrementation operator in Python with examples
Answers
Answered by
0
Answer:
Increment operator can be demonstrated by an example: #include <stdio.h> int main() { int c=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
Environmental Sciences,
1 month ago
English,
1 month ago
History,
3 months ago
Social Sciences,
3 months ago
Biology,
10 months ago
Geography,
10 months ago
Math,
10 months ago