// Use the & operator (Sometimes called the "address of" operator
int variable = 7;
printf("Address of variable = %d\n", &variable);
printf("Value of variable = %d\n", variable);
main()
{
int *p, **q, a;
a = 10;
p = &a;
q = &p;
printf("/n/n value of pointer p is %d",*q);
printf("/n/n address of ponter p is %d"q);
getch();
}
the address of variable (pointer) that contains array
Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.
In C we use & operator while giving address of some variable to some pointer variable. & operator is also used in scanf().
A constant variable cannot have its value changed at program run time.
pointer variable in c contains the address or the location of the other variable. eg- if a=2 and address of a is 2345. b=&a then b is a pointer which contains 2345 which is the address of a. *b gives value of that is 2.
Pointer is like variable address the members in memory shell
the address of variable (pointer) that contains array
Pointer can be defined as variable that is used to store memory address , usually the location another variable in memory. Pointers provide a means through which memory location of a variable can be directly accessed.
a pointer is a variable .it specify the address of the particular variable ,the & symbol is to specify the address of the variable.
In C we use & operator while giving address of some variable to some pointer variable. & operator is also used in scanf().
Pointer is a variable, A variable that stores the address of another variable. Size of a pointer is 2 bytes.
A variable is the name for a place in the computer's memory where you store some data.
A constant variable cannot have its value changed at program run time.
A variable is an entity that may change its value. In a program, the result of the processing statements are stored in the computer's memory.
pointer variable in c contains the address or the location of the other variable. eg- if a=2 and address of a is 2345. b=&a then b is a pointer which contains 2345 which is the address of a. *b gives value of that is 2.
A static variable in C is one in which the memory is preallocated before the execution unit begins and lasts for the entire program unit.A non-static variable in C will be allocated in the block in which it is contained, and destroyed outside that block.
Use the address-of operator: char c=32; // space character std::cout<<&c<<std::endl;