#include <stdio.h> int main() { int x = 5; int *ptr = &x; printf("Value of x before: %d\n", x); *ptr = 20; // تغییر مقدار x از طریق اشارهگر ptr printf("Value of x after: %d\n", x); return 0; }