C++/c

Advertisement


Question
Is there something which we can do in c but not in c++
Why is preincrement operator faster than post increment operator


Answer
Almost nothing can be done in C which is not possible in C++. There are some formatting changes in C++ that doesn't let C programs compile in C++ compilers. There is a C macro that let compiler thread that code using C compiler.
Do you mean ++i executes faster than i++? I don't agree, except by fast you mean something else. Preincrement increments the variable before using its value.

C++

All Answers


Answers by Expert:


Ask Experts

Volunteer


Sam

Expertise

You may ask me about simple to complicated C/C++ programming methods/style and most like questions about network programming in C++.

Experience

I'm a professional programer in C++ and network/internet programming.

©2016 About.com. All rights reserved.