Choose The Correct Alternative For The Following
Choose The Correct Alternative For The Following
7. (a) Implement the following function with the prototype given below
int exponent (int x, int y);
This function will evaluate and return xy if there is no overflow. Otherwise in
case of overflow(i.e value out of range for integer),the function will return 0.
(b) Write a C program to reverse any number, using recursion.
(c) How does a local static variable behave differently from a local variable in a
function?
4+ 6 + 2 = 12
Group – E
8. (a)Write a program in C to count and print total number of characters in a text file.
Also print the last n characters from the file. (n is a user input).
(b) Create a structure to store the name, mobile number and the marks of student.
Create an array to store the details for five students and print the details of the
student whose marks is maximum.
(3 + 3) + 6 = 12