Write the recursive algorithm to find x^ n.
float power(float x, int n) { if(x=0) { return 0; } else if(n==0) { return 1; } if(n>0) { return x * power(x,n-1); } }
Describe a string reversal algorithm. Write the difference between a [ ] [ ] and **a.
What is the benefit of using arrays of pointers instead of several pointer variables?
Define the ADT for stack. Show the implementation of the stack data structure using linked list.
a) Define big O notations.
b) \( {T(n) = 4n^{2}+3n \log_{}{n} } \), express T( n ) in Big( O ) notations.
Write a C program to find the GCD of two numbers.
Short Notes :Lines of Code (LOC)
Write a C program to convert Centigrade temp into Farenhite temp.
Draw the ER diagram of a hospital and explain.
Write a C program to check a year is leap year or not.
Write short notes on: