10th Computer Science Questions-Answers CH# 2
10th Computer Science Questions-Answers CH# 2
0
Q1: What is the difference between printf and
scanf functions?
Ans: Printf function: The printf function is used to print text and
values on the screen in a specified format. It's also called
formatted output function.
1
Ans: The character format specifier “%c” is used to read or print a
single character.
2
Ans: Increment operator is “++” and decrement operator is “- -”. ++
increments by 1 and - - decrements by 1.