MCPcopy Create free account
hub / github.com/CodeWithHarry/The-Ultimate-C-Programming-Course / main

Function main

Chapter 7/05_array_in_memory.c:3–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 int marks[5];
5
6 printf("Enter marks of 5 students\n");
7
8 for (int i = 0; i < 5; i++)
9 {
10 scanf("%d", &marks[i]);
11 }
12
13 for (int i = 0; i < 5; i++)
14 {
15 printf("The address of marks at index %d is %u\n", i, &marks[i]);
16 }
17
18
19 return 0;
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected