Skip to content

Commit 9ff901b

Browse files
committed
add 1st example of array in C
1 parent c29c03e commit 9ff901b

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

a.out

15.6 KB
Binary file not shown.

array.c

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
// ================================================
3+
// * Language: C
4+
// * Topic: Array
5+
// ===============================================
6+
7+
// example 1️⃣
8+
9+
#include <stdio.h>
10+
int main(){
11+
int marks [3];
12+
printf("Phy : ");
13+
scanf("%d" , &marks[0]);
14+
15+
printf("Chemy : ");
16+
scanf("%d" , &marks[1]);
17+
18+
printf("Bio : ");
19+
scanf("%d" , &marks[2]);
20+
printf(" Phy = %d Chemy = %d bio = %d\n", marks[0], marks[1], marks[2]);
21+
return 0;
22+
}
23+
24+
25+
26+
27+
// #include <stdio.h>
28+
// int main(){
29+
// return 0;
30+
// }
31+
32+
// 1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 🔟

solve_problem.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// ================================================
2+
// * Language: C
3+
// * Topic: Pointer
4+
// * solve practice Problem
5+
// =================================================

0 commit comments

Comments
 (0)