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.b) Name the header file of C++ to which
following functions belong. (i)strcat( )(ii) scanf( ) (iii) getchar( ) (iv)clrscr( ) Ans:
1.c) Find the syntax error(s), if any, in the following program:
Ans (i) Line No 5: Undefined symbol ‘i’.
The variable ‘i’ is not declared in the program.(ii)Line No 10:Assign the value of a pointer to an integer variable. Ie error in x=y. 1.e) Write the output of the following program.
Ans: Output:
1.f) Write a C++ function that converts a 2- digit octal number into binary number and prints the binary equivalent.
CBSE Computer Science Solved Revision Tour By Mr. Ravi Kiran ( [email protected] ) |
|