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

Function main

Chapter 6/01_pointer.c:3–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include <stdio.h>
2
3int main(){
4 int i = 72;
5 int* j = &i; // j is a pointer pointing to i (j is an integer pointer)
6 int k = 67;
7 printf("The address of i is %p\n", &i);
8 printf("The address of i is %p\n", j);
9 printf("The address of i is %p\n", &k);
10
11
12 printf("The value at address j is %d\n", *(&i));
13
14 return 0;
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected