Constants and Literals 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: Constants and Literals in C (/showthread.php?tid=5076) |
Constants and Literals in C - Qomplainerz - 07-25-2023 Constants are fixed values that cannot be modified during the program's execution. In C, you can use literals to represent constants. #define PI 3.14159 // Declaring a symbolic constant using a #define directive const int MAX_SIZE = 100; // Declaring a constant variable using the const keyword |