Advanced C with Madhav

1. Variable Naming Rules in C Variables are names used to store data. Some rules are as follows: ✅ Valid Naming Rules: Must start with a letter (A-Z or a-z) or underscore _ Can contain letters, digits, and underscores (A-Z, a-z, 0-9, _) Cannot start with a digit No special characters like @ , # , % , & , etc. No spaces allowed Cannot use C keywords (e.g., int , float , if , etc.) Case-sensitive (e.g., score , Score , and SCORE are different) 🛑 Invalid Examples: int 1 value; // starts with a digit ❌ int total$; // contains special character ❌ int float ; // keyword used as name ❌ ✅ Valid Examples: int age; float total_marks; char _grade; 2. Format Specifiers in C Format specifiers are used with printf() and scanf() for input/output . Common Format Specifiers: Specifier Data Type Example %d int (integer) int age = 20; %f float float pi = 3.14; %lf double double d = 3.1415; %c char char grade = 'A'; %s string ...