C Variables & Naming Rules! Use of const Keyword | Class 10 Computer
Code & Chill
0:00 / 0:00
C Variables & Naming Rules! Use of const Keyword | Class 10 Computer
4 просмотра · 5 дн. назад
Code & Chill
8 подписчиков
4 просмотра · 5 дн. назад
Screen pe focus karo, aur logic load karo! 💻⚡
Swagat hai aapka Class 10 Computer Science practical coding series ke Video 02 me!
Pichli video me humne basic skeleton, gcc run, semicolon aur case sensitivity ka live proof dekha tha.
Aaj ke is practical session me hum terminal par live dekhenge ki:
1. Variable (Dabba Model) RAM memory me kaise banta hai aur iski value override (20 se 21) kaise hoti hai.
2. int, char ('A') aur float variables ko declare aur print karne ke format specifiers (%d, %c, %f).
3. Variable Naming ke 3 Board Exam Traps:
1rank (Digit se start kyu nahi ho sakta?)
roll number (Beech me space kyu allowed nahi hai?)
int float (32 Reserved Keywords collision kyu galat hai?)
4. const Keyword: Variable ki value ko hamesha ke liye freeze kaise karein aur use change karne par compiler red error kyu deta hai!
📌 Video Timeline (Timestamps):
00:00 - Introduction & Welcome Back
00:27 - Quick Recap: stdio.h, int main() & return 0;
01:38 - Variable Concept (RAM Ka Dabba Model: int age = 20)
02:56 - char grade = 'A' Declaration & Single Quotes
03:20 - printf Format Specifiers: %d, %c & Newline (\n)
06:50 - Variable Value Mutation (age = 20 se 21 Live Run)
08:09 - Variable Naming Rules: Valid Conventions (_marks, rollNumber)
10:43 - 3 Big Naming Traps: Numbers, Spaces & Reserved Keywords Error
13:37 - const Keyword: Value Freeze & Float Data Type
15:21 - Live Compiler Crash: Assignment of Read-Only Variable 'pi' Error!
16:51 - Summary, Homework Challenge & Next Video Preview
🎯 Board Exam Questions Covered:
• C me variable ka naam '1rank' ya 'roll number' rakhna kyu galat hai?
• C language me kisi variable ki value freeze karne ke liye kaunsa keyword use hota hai? (const)
• Character variable ko declare karte waqt single quotes lagana kyu zaroori hai? (Jisse compiler usko ek character value ki tarah samjhe naa ki dusre variable ki tarah.)
• Read-only variable assignment error kab aati hai?
💬 Aaj Ka Live Challenge Question:
"Agar hum kisi variable ka naam '_total_marks' rakhein, toh kya compiler error dega ya yeh valid name hai? Aur 'total$marks' valid hai ya nahi?"
Apna answer reason ke saath comments me drop karo! Best explanation ko pin kiya jayega!
Code chalate raho, aur exam me machate raho! Peace out 🫡
#Class10Computer #CLanguage #CVariables #ConstKeyword #NamingRules #CodingForBeginners #BoardExam2026 #LearnCodingInHindi