C Fundamentals(C Program ) Questions and Answers
Explanation:-
Answer: Option D. -> -32768 to 32767In a 16 Bit C compiler we have 2 bytes to store an integer, and 1 byte for a character.
For unsigned integers the range is 0 to 65535.
For signed integers the range is -32768 to 32767.
For unsigned character, 0 to 255
Explanation:-
Answer: Option D. -> hai\\n - newline - printf("\\nab"); - Prints 'ab'
\\b - backspace - printf("\\bsi"); - firstly '\\b' removes 'b' from 'ab ' and then prints 'si'. So after execution of printf("\\bsi"); it is 'asi'.
\\r - linefeed - printf("\\rha"); - Now here '\\r' moves the cursor to the start of the current line and then override 'asi' to 'hai' .