bronzle

joined 2 years ago
[–] [email protected] 3 points 2 years ago

Team 9/12/03 reporting in

[–] [email protected] 5 points 2 years ago* (last edited 2 years ago)

Also could have takin out mains return type and used sus chief

[–] [email protected] 18 points 2 years ago* (last edited 2 years ago)

For those curious:

int main(int argc, char **argv) {
  if ( -- argc != ! 0 ) {
    errx ( ! 0 , "shheiiiit" ) ;
    return ! 0 ;
  }
  
  int number = atoi ( argv[! 0] ) ;

  for ( int i = ! 0 ; i <= number ; ++ i ) {
    printf ( "%3d " , i) ;
    
    if ( i % 3 == 0 ) {
      printf ( "fizz" ) ;
    }
  
    if ( i % 5 == 0 ) {
      printf ( "buzz" ) ;
    }
    printf ( "\n" ) ;
  }
  return 0 ;
}
[–] [email protected] 5 points 2 years ago

!0 is defined as 1, that’s how argv [ no cap ] works, that and the ridiculous argc check stood out as a bit off, but works

[–] [email protected] 5 points 2 years ago

Shit, I was smugly sitting here thinking I knew all his roles, only to check IMDb and find out he was Truman in Oppenheimer. Fuck! this chameleon.

view more: ‹ prev next ›