filmov
tv
C Program to find variable address in the memory
![preview_player](https://i.ytimg.com/vi/t9pE2ZtIfz4/sddefault.jpg)
Показать описание
Address in C
If you have a variable var in your program, &var will give you its address in the memory.
We have used address numerous times while using the scanf() function.
scanf("%d", &var);
Here, the value entered by the user is stored in the address of var variable. Let's take a working example.
If you have a variable var in your program, &var will give you its address in the memory.
We have used address numerous times while using the scanf() function.
scanf("%d", &var);
Here, the value entered by the user is stored in the address of var variable. Let's take a working example.