Comments and Variables

Lesson overview

Topics covered: Single-line and multi-line comments, variable types and declaration.

Comments and Variables

Single-line: // this is a comment
Multi-line: /* this is a comment */
Variables: int, float, char, double are declared as
int my_var; float my_float;

Article author: Arthur Isaev