C Programming – Day 1 | Basics, Structure & First C Program for Beginners
C PROGRAMMING BASIC (INTERACTIVE)
🎯 Today’s Learning:
1️⃣ Structure of a C Program
2️⃣ printf() & scanf()
3️⃣ Variables + Data Types
4️⃣ Practice Task + Quiz
✅ 1. Structure of a C Program
✔ Every C program must have main()
✔ #include <stdio.h> allows input & output
✅ 2. Output: printf()
✅ 3. Input: scanf()
📌 Note: Use & before variable name in scanf()
✅ 4. Variables & Data Types
| Data Type | Keyword | Example |
|---|---|---|
| Integer | int | 10 |
| Float | float | 10.5 |
| Character | char | 'A' |
| String | char[] | "Hello" |
| Double | double | 20.123456 |
🧪 Example Program (Input + Output)
✅ Task 1 (Please Solve)
Write a program that takes:
✔ Your country name (string)
✔ Your year of birth (integer)
Then print like:
You can type your code here — I will check and correct it ✅
📝 Quick Quiz (Answer in Chat)
1️⃣ Which function is used to take input in C?
A) print()
B) printf()
C) scanf()
2️⃣ Which data type is correct for storing decimal values?
A) int
B) float
C) char
3️⃣ Which line starts input/output system?
A) #include <stdio.h>
B) main()
C) return 0;
Write answers like: 1C, 2B, 3A
✅ After your task + quiz → I will update Day-1 completed.
Reply with:
➡ Your Task 1 Code
➡ Quiz Answers

No comments
Thank You For Visit My Website.
I Will Contact As Soon As Possible.