Vba
VBA Tutorial PDF: Excel Programming Course (FREE Download)
$20.20 $9.99 for today 4.6 (119 ratings) Key Highlights of VBA Tutorial PDF 85+ pages eBook...
A comment is an explanation or description of the source code of the program. It helps a developer explain logic of the code and improves program readability. At run-time, a comment is ignored by the compiler.
There are two types of comments in C:
1) A comment that starts with a slash asterisk /* and finishes with an asterisk slash */ and you can place it anywhere in your code, on the same line or several lines.
2) Single-line Comments which uses a double slash // dedicated to comment single lines
// single line comment example
Here is an example of comments type
// C program to demo // Single Line comment #include <stdio.h> int main(void) { // This is a single line comment printf("Guru99"); return 0; // return zero }
/* Sample Multiline Comment Line 1 Line 2 …. … */
Example Multi Line Comment
#include <stdio.h> int main() { /* in main function I can write my principal code And this in several comments line */ int x = 42; //x is a integer variable printf("%d", x); return 0;}
A good programmer who writes codes understood by a human is better than a programmer who generates codes understood only by the machine.
So, it is highly recommended to insert comments to your code because it is good programming practice. Comments do not affect a program because the compiler ignores them.
Comments help the developer understand the logic/algorithm of the code if he revisits it after a long time.
$20.20 $9.99 for today 4.6 (119 ratings) Key Highlights of VBA Tutorial PDF 85+ pages eBook...
Download PDF 1) Explain what is Cassandra? Cassandra is an open source data storage system...
Email is one of the ideal points of contact between business and your customers. Clients resort to...
This tutorial aims at introducing the apply() function collection. The apply() function is the...
You have learned, from previous Guru99 tutorials, what Jenkins is and how to install it onto a...
What is Hadoop? Apache Hadoop is an open source software framework used to develop data processing...