Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What does this program print?

Name: Anonymous 2011-10-18 14:55


#include <stdio.h>
int main() {
  int x[5];
  printf("%p\n", x);
  printf("%p\n", x+1);
  printf("%p\n", &x);
  printf("%p\n", &x+1);
  return 0;
}


Since none of you use C compilers I know there will be no risk of cheating.

Name: Anonymous 2011-10-20 0:44

>>29-30
First, thank you for giving me this opportunity to optimize my quoting.

Second, http://blogs.oracle.com/ksplice/entry/the_ksplice_pointer_challenge#comment-1318975670991

There are some silly things in the C spec, nonsense holdovers from BCPL, the various meanings of static, some would argue const shenanigans (I'm not one of them, but I acknowledge it's less effective than intended... I certainly wouldn't go overboard and ban type qualifiers from my language.)

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List