All pastes #605313 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-07-06 02:46 UTC
rendered paste body
#include <iostream>


struct fooBar {
     int a;
     char b[10];
};

void test(int a, int b, fooBar *item = NULL);

void test (int a, int b, fooBar *item) {
     printf("Item pointer addr %x\n", (unsigned int)&item);
}

int main() {
    fooBar goo;
    test(1, 2);
    test(3, 4, &goo);
return 0;
}