CBSE Computer Science - Revision Tour(Solved) CBSE Guess > eBooks > Class XII > CBSE Computer Science C++ Solved Revision Tour By Mr. Ravi Kiran COMPUTER SCIENCE C++ 1.e) Write the output of the following program.
3 Ans: Output:
f) Write a function seqsum( ) in C++ with two arguments, double x and int n. The function should return a value of type double and it should find the sum of the following series. 1+ x/2! + x2/4! + x3/6! + x4/8! + x5/10! + ---- + xn/(2n)!
4 1999 Annual Paper: 1.a) Why main( ) function is so special. Give two reasons? 1 Ans: Execution of the program starts and
ends at main( ). The main( ) is the driver
function of the program. If it is not present in
a program, no execution can take place.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|