#include <stdio.h>
int my_num;
char my_char;
// Numeric Pointer
int *my_numeric_pointer;
// Char Pointer
int *my_char_pointer;
// Int Array Pointer
int numbers[5];

int main() {
    // Assign the address of my_num to my_numeric_pointer
my_numeric_pointer = &my_num;

    // Print the address of my_num
printf("Address of my_num : %p\n", (void *)&my_num);
    // %p enables printf to print memmory addresses.
    //However, the %p expects a void pointer type. 
    //A void pointer, being a pointer that can be any type.

    // Insert 5 into my_num via *my_numeric_pointer = 5
*my_numeric_pointer = 5;

    // Print the value of my_num
printf("Value of my_num is now = %d\n", my_num);

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: