QP School
Basic C syntax - 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: Basic C syntax (/showthread.php?tid=5075)



Basic C syntax - Qomplainerz - 07-25-2023

Data Types and Variables:
In C, you need to declare variables with their data types before using them. Common data types include int, float, char, double, etc.
int age;        // Declaration of an integer variable
float pi = 3.14;  // Declaration and initialization of a float variable
char letter = 'A'; // Declaration and initialization of a char variable