gdrocell
BAN USER
Questions (3)
Comments (2)
Reputation 15
- 0of 0 votes
AnswersHow do you get the current code pointer (eip) into the eax register?
- gdrocell in United States for SIGOV| Report Duplicate | Flag | PURGE
Raytheon Reverse Engineering and System Developer Assembly - 0of 0 votes
AnswersWhat is the output of the following procedure
- gdrocell in United States for SIGOV
{
void foo() {
int* a = 0;
char* b = NULL;
printf("%x %x", a, b);
printf("%x %x", *a, b);
printf("%x %x");
}
}| Report Duplicate | Flag | PURGE
Raytheon Reverse Engineering and System Developer C - 0of 0 votes
AnswersExpand the following fragment of C code to make it more understandable
- gdrocell in United States for SIGOV
{char* c = *a ? *++*a : *++*b;}| Report Duplicate | Flag | PURGE
Raytheon Reverse Engineering and System Developer C
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.
@ravigupta That is close, but you are only temporarily incrementing the *a and *b pointer where the pointer itself needs to be incremented as well, that is, there should be a ++*a and ++*b some where in the code.
- gdrocell June 01, 2012