hi,

1) what q signify and how can it be of any use?

int* p = 0;
int* &q = *p;

2) what does it do?

int main()
{
          return main;
}

It compiles with gcc (not g++) and running the executable does not do anything without error.

Thanks.

Recommended Answers

All 2 Replies

Number - 2
the main function returns the address of main as its exit value..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.