C Programming - Assignment - 17

 Assignment 17

---------------------------

All the questions in this assignment are based on functions in C.

  1. fact () which takes one argument of integer type and returns the factorial of given number
  2. increment() which takes an integer argument and then check it is event or odd if even increase it by 2 and if odd increase it by 1
  3. A function which takes an array as argument and reverse the array. The function name is rev_array()
  4. A function which takes two arguments base and power values and calculate the power result then it returns it to main
  5. A function which takes an array as input and another number. This checks how many time this number has occurred and then prints that occurrence
  6. A function that takes and array and another number and perform binary search. The function name may be search_binary().

Comments