954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

pointer to some code

Hi
Is it possible to write a c++ program that sets up a pointer at the start of an array on the heap, and the pointer holds the address of the start of the code.
ie something like---

int *pointstart[5];
pointstart = new (codestart, 0,0,0.0);

1nt main()
{
codestart:; // label at start of code
...................
return()
}


thanks!

bruseyboy
Newbie Poster
1 post since Jul 2004
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You