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

C program

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.

Name: Anonymous 2010-07-15 4:16

#include <stdio.h>

int main(int a, char **b){
  printf("%d\n",a=atoi(b[1])>atoi(b[2])?a:atoi(b[2]));
  return 0;
}

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