QP School
Commenting out a block of code in C - Printable Version

+- QP School (https://qomplainerzschool.lima-city.de)
+-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3)
+--- Forum: C 18 Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=32)
+--- Thread: Commenting out a block of code in C (/showthread.php?tid=5130)



Commenting out a block of code in C - Qomplainerz - 07-26-2023

Example:

/*
int x = 10;
int y = 20;
int z = x + y;
*/

Explanation:

Multi-line comments are often used to comment out a block of code.
In this example, the block of code between /* and */ is commented out and won't be compiled or executed.
This can be helpful when temporarily disabling a section of code during testing or debugging.