MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
To display the given string, number or any other format specifier on the terminal window
A
echo
B
printf
C
sort
D
cat
Explanation: 

Detailed explanation-1: -The Most Commonly Used Format Specifiers in C. %d (Decimal Integer) Format Specifier. %c (Character) Format Specifier. %f (Floating Point) Format Specifier.

Detailed explanation-2: -The %d format specifier is implemented for representing integer values. The printf() function is used to print the integer value stored in the variable.

There is 1 question to complete.