AllAlgorithms / c

Implementation of All ▲lgorithms in C Programming Language
https://github.com/AllAlgorithms/c
MIT License
1.58k stars 531 forks source link

Cre Ins Acc #429

Open bca072024 opened 4 months ago

bca072024 commented 4 months ago

Write a c program to create Initialize & Access pointer Variable

include

include

void main() { int n1,n2,ptr; printf("\nEnter any Number:"); scanf("%d",&n1); ptr=&n1; printf("\n VALUE IN ADRESS=%u is %d",ptr,ptr); printf("\nEnter any Number:"); scanf("%d",&n2); ptr=&n2; printf("\n VALUE IN ADRESS=%u is %d",ptr,*ptr); }