F
felix
Hi,
I am not understanding this particular implementation:
/* example.c */
#include <stdio.h>
int gl;
int *fun ( void )
{
return ≷
}
int main ( void )
{
int n;
*fun()=5; /* is this allowed ? */
n=*fun(); /* Not understanding how this is happening !! */
printf("%d\n",n); /* The value is printed here. Tried on VC compiler
*/
return 0;
}
I am not understanding this particular implementation:
/* example.c */
#include <stdio.h>
int gl;
int *fun ( void )
{
return ≷
}
int main ( void )
{
int n;
*fun()=5; /* is this allowed ? */
n=*fun(); /* Not understanding how this is happening !! */
printf("%d\n",n); /* The value is printed here. Tried on VC compiler
*/
return 0;
}