here ...at the end z is assigned address of itself by **v,
how **z can give value 3.15 if it is addressing itself ?????? another Q is if if **z
is printed in the next line after printing value of z ....it doesn't give value 3.14....
is it something related to scope??.....confused.
Expand|Select|Wrap|Line Numbers
- #include <stdio.h>
- #include <conio.h>
- float a=3.15;
- float **z;
- float **y;
- float ***x;
- float ****v;
- float ****w;
- float **fun1(float*);
- float ****fun2(float***);
- void main()
- {
- z=fun1(&a);
- printf("%u , %f",z,**z);
- getch();
- }
- float **fun1(float*z)
- {
- y=&z;
- v=fun2(&y);
- return (**v);
- }
- float ****fun2(float***x)
- {
- w=&x;
- return(w);
- }