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

C and C++ Question

Name: Anonymous 2008-10-09 18:17

Why must you declare functions twice?

Name: Anonymous 2008-10-10 16:02

>>17
$ cat > noproto.c
main() { return !printf("%d\n", times2(16)); }
times2(a) { return mul(a, 2); }
mul(a, b) { return a * b; }
$ gcc -w -o noproto noproto.c && ./noproto
32
$

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