IQOD #7
These are all really starting to look a like to me, except for a few which reference some obscure C functions noone even knows about anymore lol (va_start anyone? or setlongjmp?)
Anyway I'm thinking after these we'll move into some 'larger' questions and possibly open ended (e.g. "write some code without use of the compiler/ide etc")
Consider the following program snippet (so don't worry about missing includes etc) on a 16-bit platform:
What is the output?
What would the output be on a 32-bit platform?
Anyway I'm thinking after these we'll move into some 'larger' questions and possibly open ended (e.g. "write some code without use of the compiler/ide etc")
Consider the following program snippet (so don't worry about missing includes etc) on a 16-bit platform:
Code:
void f(char **p)
{
char *t;
t = (p+= sizeof(int))[-1];
printf("%s",t);
}
void main()
{
char * argv[] = { "ab", "cd", "ef", "gh", "ij", "kl" };
f(argv);
}
What would the output be on a 32-bit platform?

