C Program to find variable address in the memory

C Program to find variable address in the memory

Tech Tips With Alok

55 лет назад

564 Просмотров

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.

Тэги:

#c_pointers #c_language #c_programming #c_program #write_a_program_in_c #find_variable_add_in_c #pointers #c_coding
Ссылки и html тэги не поддерживаются


Комментарии: