Hi everyone,
Someone plz explain why this C code works fine as memory allocated is of 0
size...
main()
{
int *p=malloc(0);
*p=2566;
printf("%d\n",*p);
getchar();
}
--
Prakhar Jain
IIIT Allahabad
B.Tech IT 3rd Year
Mob no: +91 9454992196
E-mail: [email protected]
[email protected]
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.