Hide minor edits - Show changes to markup
if (gwb == 0){ // single line comment is OK inside of a multiline comment
if (gwb == 0){ // single line comment is OK inside a multiline comment
if (gwb == 0){ // single line comment is OK inside of multiline comment
if (gwb == 0){ // single line comment is OK inside of a multiline comment
Tip
Tip\\
x = 3; /* but not another multiline comment - this is invalid */
x = 3; /* but not another multiline comment - this is invalid */
if (gwb > 0){ // single line comment is OK inside of multiline comment
if (gwb == 0){ // single line comment is OK inside of multiline comment
// to the end of the line
// to the end of the line
// to the end of the line
// to the end of the line
[@ x = 5; // This is a single line comment. Anything after the slashes is a comment to the end of the line
[@ x = 5; // This is a single line comment. Anything after the slashes is a comment // to the end of the line
When experimenting with code "commenting out" parts of your program is a convenient way to remove lines that may be buggy. This leaves the lines in the code but turns them into comments, so the compiler will ignore them. This can be especially useful when trying to locate a problem, or when a program refuses to compile and the compiler error is cryptic or unhelpful.
When experimenting with code, "commenting out" parts of your program is a convenient way to remove lines that may be buggy. This leaves the lines in the code, but turns them into comments, so the compiler just ignores them. This can be especially useful when trying to locate a problem, or when a program refuses to compile and the compiler error is cryptic or unhelpful.
Comments are parts in the program that are used to inform yourself or others about the way the program works. Comments are ignored by the compiler, and not exported to the processor, so they don't take up any space on the Atmega chip.
They are strictly useful to help you understand (or remember) how your program works or to inform others how your program works.
Comments are lines in the program that are used to inform yourself or others about the way the program works. They are ignored by the compiler, and not exported to the processor, so they don't take up any space on the Atmega chip.
Comments only purpose are to help you understand (or remember) how your program works or to inform others how your program works.
[@ x = 5; // This is a single line comment. Anything after the slashes is a comment
[@ x = 5; // This is a single line comment. Anything after the slashes is a comment to the end of the line
// don't forget the "closing" comment - they have to be balanced!
Comments are parts in the program that are used to inform oneself or others about the way the program works. Comments are not compiled or exported to the processor, so they don't take up any space on the Atmega chip.
They are strictly useful for you to understand what your program is doing or to inform others how your program works.
Comments are parts in the program that are used to inform yourself or others about the way the program works. Comments are ignored by the compiler, and not exported to the processor, so they don't take up any space on the Atmega chip.
They are strictly useful to help you understand (or remember) how your program works or to inform others how your program works.
x = 3; /* but not another multiline comment - this is invalid */
x = 3; /* but not another multiline comment - this is invalid */
/* you could use a combination of slash-asterisk --> asterisk-slash encapsulating your comments:
x = 7;
/* this is multiline comment - use it to comment out whole blocks of code
8/
*/'''
[@ x = 5; // This is a single line comment - anything after the slashes is a comment
[@ x = 5; // This is a single line comment. Anything after the slashes is a comment
/* you could use a combination of slash-asterisk --> asterisk-slash encapsulating your comments:
x = 7; if (gwb > 0){ // single line comment is OK inside of multiline comment x = 3; /* but not another multiline comment - this is invalid */ }
8/
*/'''
@]
[@ x = 5; // This is a single line comment - anything after the slashes is a comment
Comments are parts in the program that are used to inform about the way the program works. They are not going to be compiled, nor will be exported to the processor. They are useful for you to understand what a certain program you downloaded is doing or to inform to your colleagues about what one of its lines is.
Comments are parts in the program that are used to inform oneself or others about the way the program works. Comments are not compiled or exported to the processor, so they don't take up any space on the Atmega chip.
They are strictly useful for you to understand what your program is doing or to inform others how your program works.
When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.
When experimenting with code "commenting out" parts of your program is a convenient way to remove lines that may be buggy. This leaves the lines in the code but turns them into comments, so the compiler will ignore them. This can be especially useful when trying to locate a problem, or when a program refuses to compile and the compiler error is cryptic or unhelpful.
When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.
When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.
Comments are parts in the program that are used to inform about the way the program works. They are not going to be compiled, nor will be exported to the processor. They are useful for you to understand what a certain program you downloaded is doing or to inform to your colleagues about what one of its lines is. There are two different ways of marking a line as a comment:
Tip When experimenting with code the ability of commenting parts of your program becomes very useful for you to "park" part of the code for a while.