L
lennin
#define NULL 0
int main()
{
unsigned int p = NULL;
/* Empty your mind */
if (p!=NULL) delete &p;
p = NULL;
/* if a pointer is cast into an int, it becomes the int */
int* r = (int*)p;
struct my_struct
{
int b;
};
/* if a pointer is cast into a struct, it becomes the struct */
my_struct* q = (my_struct*)p;
/* be a pointer my friend */
return 0;
}
int main()
{
unsigned int p = NULL;
/* Empty your mind */
if (p!=NULL) delete &p;
p = NULL;
/* if a pointer is cast into an int, it becomes the int */
int* r = (int*)p;
struct my_struct
{
int b;
};
/* if a pointer is cast into a struct, it becomes the struct */
my_struct* q = (my_struct*)p;
/* be a pointer my friend */
return 0;
}