![]() |
Pointer confusion! URGENT!!
Hi I have got stuck bcos of this unexpected result .. Can someone Aid???
Program: Code:
#include <stdio.h>Address of the node : 2500 Value of a : 1 Value of b : 2 Value of c : 3 Address of the node : 0 Value of a : 0 Value of b : 0 Value of c : 30036 I need to view the values of the the node in the main() function. But am unsuccessful. Thanks in Advance. Cheers, Kart. |
Re: Pointer confusion! URGENT!!
Hi,
From main you are passing temp by value, to achieve desired result you should pass temp by address. Like Code:
#include <stdio.h> |
Re: Pointer confusion! URGENT!!
thanks Dinesh.. it indeed solved the problem!!
|
| All times are GMT +5.5. The time now is 09:38. |