| 1 | #include <stdio.h> |
| 2 | |
| 3 | int main(){ |
| 4 | int marks[] = {12, 34, 53, 66}; |
| 5 | |
| 6 | int* ptr = &marks[0]; |
| 7 | // int* ptr = marks; // Same as int* ptr = &marks[0]; |
| 8 | |
| 9 | for (int i = 0; i < 4; i++) |
| 10 | { |
| 11 | // printf("The marks at index %d is %d\n", i, marks[i]); |
| 12 | printf("The marks at index %d is %d\n", i, *ptr); |
| 13 | ptr++; |
| 14 | } |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | return 0; |
| 20 | } |
nothing calls this directly
no outgoing calls
no test coverage detected