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

Code off

Name: Anonymous 2009-07-28 13:59

Welcome to the first annual /prog/ Code off !

The language will be C.

Compeptitors include (in no particular order):

Mr. Ribs
Xarn
FV
Anonymous
W. T. Snacks

Rumor has it, that there may be a special guest appearance from either The Sussman or
Leah Culver.

What's the point of this, you ask?

It's to determine who is an EXPERT PROGRAMMER.

Marking criteria:

Optimization
Elegance

Bonus marks:
indentation

Good luck!

Name: =+=*=F=R=O=Z=E=N==V=O=I=D=*=+= !frozEn/KIg 2009-07-28 17:41

>>7 Easy:
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
//syntax combine jpeg1 jpeg2
void main(int argc,char **argv){int clen=(strlen(argv[1])>strlen(argv[2]))?strlen(argv[1]):strlen(argv[2]);int i;
for(i=0;i<clen;i++){putchar(argv[1][i]^argv[2][i]);}}

_______________________________
http://xs135.xs.to/xs135/09042/av922.jpg
Velox Et Astrum gamedev forum: http://etastrum.phpbb3now.com
It looks like a vortex -- a gateway into another dimension.

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