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

c syntaks

Name: Anonymous 2011-12-17 11:01

what was the easier way to refer to an array's first member other than array[0] ?
i forgot what the symbol was.

Name: Anonymous 2011-12-17 16:04

>>14

#include <stdio.h>
#include <string.h>

char array[] = "HOW AWESOME?!";

int main() {
    register char *c = array;

    while( *c != 0x00 ) {
        putchar( *c );
        c++;
    }

    putchar('\n');
    return 0;
}


ZOMG OPTIMIZED

.

.

.

Seriously, take your shit somewhere else... /polecat kebabs/.

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