Commenting out 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 code in C (/showthread.php?tid=5125) |
Commenting out code in C - Qomplainerz - 07-26-2023 Example: int x = 10; // Initialize the value of x to 10 // int y = 20; // This line is commented out and won't be executed Explanation: Single-line comments are often used to comment out lines of code that are not needed at the moment. In this example, the second line (int y = 20 is commented out, so it won't be compiled or executed. Developers use this technique for temporarily disabling code without deleting it, which can be useful during testing or debugging. |