#include int main() { // 1. Declaring a Pointer int *ptr; // Pointer to an integer // 2. Assigning Address to a Pointer int var = 10; ptr = &var; // ptr now holds the address of var // 3. Dereferencing a Pointer int value = *ptr; // value is now 10 (the value of var) // 4. Modifying Value via Pointer *ptr = 20; // var is now 20 // Example Output printf("Value of var: %d\n", var); // Output: 20 printf("Address of var: %p\n", (void*)&var); // Output: Address of var printf("Value via pointer: %d\n", *ptr); // Output: 20 return 0; }