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

Count to 10

Name: Anonymous 2010-06-17 15:14

Lets see if /prog/ can count to 10 in C. I'll start:

int main(void){

Name: FrozenVoid 2010-06-24 12:34

#include "stdio.h"
#define br break
main(int argc, char**argv, char**envp){
switch(argc){
case 1:;for(argc=0;argc<10;printf("%d\n",++argc));br;
case 2:;printf("Have you read your %s today?",argv[1]);br;
case 3:;printf("%s is the new %s",argv[1],argv[2]);br;
default:;argc=0;puts("Secret environment data:\n\n\n");
for(;envp[argc];printf("\t%s\n", envp[argc++]));br;
}}




__________________
Orbis terrarum delenda est

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