Hi, I need to know how (if it is possible) to determine the sizeof a function...
#include <iostream>
using namespace std;
int theFunction();
int theFunction()
{
int x = 0;
return x;
}
int main()
{
cout << sizeof theFunction;
cin.get();
return 0;
}
The above does not work.
How would I make it work?
I am trying to output the raw code for the function to a file. so, if retrieving the size of the function is unnecessary, please tell me.
Thanks in advance.