C Programming - Assignment - 17
Assignment 17
---------------------------
All the questions in this assignment are based on functions in C.
- fact () which takes one argument of integer type and returns the factorial of given number
- 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
- A function which takes an array as argument and reverse the array. The function name is rev_array()
- A function which takes two arguments base and power values and calculate the power result then it returns it to main
- 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
- A function that takes and array and another number and perform binary search. The function name may be search_binary().
Comments
Post a Comment