C Programming - Pointers - Discussion

Discussion Forum : Pointers - General Questions (Q.No. 8)
8.
The operator used to get value at address stored in a pointer variable is
*
&
&&
||
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
33 comments Page 1 of 4.

Dinesh said:   2 decades ago
A.Because you can get value stored at any address only through *.& is used to retrieve the address value.!

Amruta said:   1 decade ago
It is also called as 'Indirection operator' and it is used to get the value stored at pointer add.

Govardhana kj said:   1 decade ago
For example;
consider int x=10;
int *y;
y=&x;
printf("value at Y is %d\n",y);

output is 10

bescause 10 is stored at address say 100(which named as 'x') and again we are declaring 'y' as pointer variable which holds address of another variable(here y holds adress of 'x')which is dereferenced using "&" opearator.

Dilip said:   1 decade ago
It is a very good platform to learn more programming.

Yamuna said:   1 decade ago
By using * (pointer) symbol only we can found the answer.

Also pointer main work is to store the address of another variable.

Apurva Nigam said:   1 decade ago
@Govardhana Kj :
U r correct but output should be 100(address of x), coz u r printing y not *y . :) :)
printf("value at Y is %d\n",y);

Vinoth said:   1 decade ago
Correct apurva nigam.

Satheesh said:   1 decade ago
@Govardhanad is right.

Deepak said:   1 decade ago
No apurva is right. Output is 10 if we declare *y.

Mohammed aabir said:   1 decade ago
What if give int *y;
y=&x;
printf("%d",&y);


Post your comments here:

Your comments will be displayed after verification.