Return
Styles:
Pseud0ch
,
Terminal
,
Valhalla
,
NES
,
Geocities
,
Blue Moon
.
Entire thread
C program
1
Name:
Anonymous
2010-07-13 18:06
Make me a C program that reads given two integers (no limits) and outputs the largest.
Do this
in a proper
GNU
hello.c
way
.
92
Name:
FrozenVoid
2010-07-19 14:39
#include "stdio.h"//Fixed & incorporated
>>90
#include "string.h"
#define s(x) (strlen(argv[(x)]))
main(int argc,char**argv){
if(argc==3){if(s(1)!=s(2)){puts(argv[s(1)>s(2)?1:2]);exit(2);}
puts(argv[(strcmp(argv[1],argv[2])>0?1:2)]);}}
Newer Posts
Don't change these.
Name:
Email:
Entire Thread
Thread List