if I have a C program that begins with
#include
int main (void){
.
.
.
}
where approximately is this function? (in hex)
if I have a C program that begins with
#include
int main (void){
.
.
.
}
where approximately is this function? (in hex)
Like this:
#include <stdio.h>
int main() {
    unsigned char *p = (unsigned char *) &main;
    int i;
    for (i = 0; i < sizeof &main; i++)
    {
        printf("%02x ", p[i]);
    }
    putchar('\n');
    return 0;
}
Output on my machine:
55 48 89 e5 48 83 ec 20 
Reference: https://stackoverflow.com/a/2741896/5399734