brintos

brintos / llvm-project-archived public Read only

0
0
Text · 239 B · 1b3d6bb Raw
13 lines · c
1#include <stdio.h>2 3int recurse(int x) {4  if (x <= 1)5    return 1;                // recurse end6  return recurse(x - 1) + x; // recurse call7}8 9int main(int argc, char const *argv[]) {10  recurse(40); // recurse invocation11  return 0;12}13