What is increment operator in c++?



What is increment operator in c++?..

Answer / Himanshu Saxena

In C++, the increment operator is denoted by ++. It increases the value of a variable by 1. There are two forms of increment operator: pre-increment (++variable) and post-increment (variable++). Pre-increment increments the variable before it is used in an expression, while post-increment increments the variable after it is used.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C++ General Interview Questions

What is the best way to take screenshots of a window with c++ in windows?

1 Answers  


What does it mean to declare a member function as static?

1 Answers  


Which software is best for c++ programming?

1 Answers  


What are move semantics?

1 Answers  


What is the output of the following program? Why?

1 Answers  


What is a float in c++?

1 Answers  


What is the syntax for a for loop?

1 Answers  


Name some pure object oriented languages?

1 Answers  


True or false, if you keep incrementing a variable, it will become negative a) True b) False c) It depends

1 Answers  


Eplain extern keyword?

1 Answers  


What is an accessor in c++?

1 Answers  


What is a storage class in C++

1 Answers  


Categories