Advertisement
m1dnight

Untitled

Aug 1st, 2014
484
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. int factorial(int xParamOfFactorial)
  2. {
  3. int result;
  4. result = xParamOfFactorial * factorial(xParamOfFactorial - 1);
  5. }
  6. int main(int mainPAram)
  7. {
  8. int factorialInput;
  9. factorialInput = 5;
  10. return factorial(factorialInput);
  11. }
  12.  
  13. int ackermann(int m, int n){
  14. if (m == 0) return n + 1;
  15. if (n == 0) return ackermann(m - 1, 1);
  16. return ackermann(m - 1, ackermann(m, n - 1));
  17. }
  18.  
  19. int reverseArray(int array[5])
  20. {
  21. int intermediate;
  22. intermediate = array[4];
  23. array[4] = array[0];
  24. array[0] = intermediate;
  25.  
  26. intermediate = array[3];
  27. array[3] = array[1];
  28. array[1] = intermediate;
  29.  
  30. intermediate = array[2];
  31. array[2] = array[0];
  32. array[0] = intermediate;
  33. }
  34. int main()
  35. {
  36. int s;
  37.  
  38.  
  39. return s;
  40. }
  41.  
  42.  
  43. int x;
  44. int main()
  45. {
  46. x[x] = array[1][1];
  47. if(x == 5)
  48. {
  49. x = 2;
  50. }
  51. else
  52. {
  53. x = 3;
  54. };
  55.  
  56. while(x == 4)
  57. {
  58. x = x - 1;
  59. };
  60. }
  61.  
  62.  
  63. int f(int x)
  64. {
  65. return 0;
  66. }
  67.  
  68. int main()
  69. {
  70. int arr[1] = {10};
  71. int x = 5;
  72. x = f(arr[1]);
  73. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement