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.
i forgot what the symbol was.
*array
#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;
}
for( int i = 0; i < strlen(array); i++ ) printf("%c", i[array] ); printf("\n");printf("%c", c); to putchar(c);. I wonder what's up with that, seems a bit too fancy.
strlen of literals to an int literal, computed on compile time.
for(int i=0; i<strlen(str); i++)
f(str, i); // if i is even, add two character to str, else remove three
#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;
}strlen being fucked pretty roughly by a gang of niggers once. It was smiling as if it was in heaven and had its eyes rolled back and tongue out while its face was covered in cum and its two holes were being penetrated simultaneously. It was jerking off three other niggers at the same time too, one per hand and one with its feet.
extern size_t strlen (__const char *__s)
__THROW __attribute_pure__ __nonnull ((1));
while(*c)
putchar(*c++);