answersLogoWhite

0

C++ uses the postfix increment operator whereas ++C uses the prefix increment operator. Both do exactly the same thing; they increment C (the same as C=C+1 increments C). The difference is only in the return value. ++C returns a reference to C, whereas C++ returns the original value of C.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Can you write own constructor in c plus plus?

Yes.


Can you write own consructor in C plus plus?

Yes.


What you can do in C that connot be done by C plus plus?

Nothing. In C++ you could write a C compiler. So, everything that can be done with C, can be also done in C++.


Write a C plus plus function that print a triangle of stars?

Write a function that print a triangle of stars.


How do you write a macro to find the biggest of 3 numbers in c plus plus?

#define biggest (a) > (b) && (a) > (c) ? (a) : (b) > (c) ? (b) : (c)


Is g plus plus similar to c plus plus?

G++ is the Gnu compiler's extension for C++. It is not a different language. It simply allows you to use the GCC compiler to write C++ code.


Write a program in c plus plus to implement macro processor?

Don't write, it is already written, google for 'cpp'.


How do you write a C plus plus program that will display the first 10 positive prime numbers?

By learning how to program on C+.


How do you write program to convert meter to kilometer in c plus plus?

Divide it by 1000.


Do I need to write a program to find a substring in a given string in c plus plus?

No.


How do you write an Algorithm for a C plus plus Program?

You don't write an algorithm for a C++ program, unless you are documenting the C++ program after-the-fact. The normal procedure is to write the algorithm first, in a language independent fashion, and then translate that stated algorithm into C++ code, or into whatever language you wish.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().