answersLogoWhite

0

The main advantage of the newer C++ comment syntax is that you only need to start the comment, and you can expect that it will last only until the end-of-line. With the older syntax, you needed to also stop the comment. any statement; /* old comment syntax */

any statement; // new comment syntax

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the purpose of using comments in c plus plus?

Comments are to help other programmers (or yourself in the future) to understand what is going on in a program, especially when the code itself is complicated and may not be obvious. More time is spent maintaining and improving programs than original development, so leaving clear comments is very important!


How have YouTube comments changed since Google forced users to post under Google Plus?

Comments critical of Google Plus are censored, and everything posted on Google is also posted on Google Plus.


How do you write a programm in c plus plus without using function main?

I don't think its possible. Every C++ program must at least have the main function.


What is the main purpose of reduction of pyruvate to lactate during fermentation?

The main purpose of pyruvate reduction to lactate during fermentation is to convert NADH to NAD plus. Early in the glycolysis process, you'll see that there's a step where NAD plus gets reduced to NADH, and then an ATP is produced.


Any program in c plus plus without using any header file?

For example: int main (void) { return 0; }


How do you display stars in c plus plus using the if else structure and a for loop and you use void main?

It depends on what program you design really


What is the purpose of collaboration solutions?

The main purpose of collaboration solutions is to enable people to involve themselves in a common task to achieve goals. A definition of this is "intentional group processed plus software to support them".


How do you wrte aprogramme on c plus plus?

#include<iostream> int main() { using namespace std; cout<<"Hello world!"<<endl; return( 0 ); }


What is the purpose of C plus plus?

Computer programming.


Give an example of C plus plus program?

#include<iostream> int main() { using namespace std; cout<<"Hello world!"<<endl; return(0); }


Why do people on deviantart like comments more than favorites?

Because comments are a bit of a status symbol and are more visible to visitors than being on someone's fave list. Plus, it is an ego boost for someone to get positive comments about their work.


What is the only function all C plus plus programs must contain?

Every C plus plus program that is a main program must have the function 'main'.