Link to home
Start Free TrialLog in
Avatar of ambuli
ambuliFlag for United States of America

asked on

Pointer to pointer in C

Hi Experts,

When using pointer to pointer would the following is valid?
char *value;
int ret = function(&value);

where as function is declared as 
int function(char **val);

Open in new window


Can we get the address of an uninitialized pointer?
Avatar of ozo
ozo
Flag of United States of America image

yes
Avatar of ambuli

ASKER

Thank you.
SOLUTION
Avatar of evilrix
evilrix
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial