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 12:38

>>8

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

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

int main() {
    for( int i = 0; i < strlen(array); i++ )
        printf("%c", i[array] );

    printf("\n");
    return 0;
}

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