Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic C syntax
#1
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
Also follow me on Youtube for videos about video games:
https://www.youtube.com/channel/UCxfkGVU...2mQ/videos
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)