C Program to find variable address in the memory

preview_player
Показать описание
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.
Рекомендации по теме