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

hay look at my recursive pow

Name: Anonymous 2009-03-04 20:14


#include <stdio.h>
#include <stdlib.h>

unsigned long long rpow(int n, int p) {
  return p ? p==1 ? n : n * rpow(n,p-1) : 1;
}

int main(int argc, char **argv) {
  if(argv[1])
    if(argv[2]) {
      int n = atoi(argv[1]);
      int p = atoi(argv[2]);
      printf("%llu\n",rpow(n,p));
    }
  return 0;
}

Name: FrozenVoid 2009-03-11 17:17

>>113
I don't consider my actions evil. I have different opinion on value of 4chan and its purpose.
Such opinions are not common here. User of this site,such as you can find different forums for posting.

_____________________________________________
That social order and control, structure of governance, social cohesion in states or organizations larger than face-to- face society depends on the nature of the technology of memory--both how it works and what it remembers... In short, what societies value is what they memorize, and how they memorize it, and who has access to its memorized form determines the structure of power that the society represents and acts from.

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