wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Which of the following is not a C function?

A
Print f
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
f print f
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
sprintf
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
tprintf
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Open in App
Solution

The correct option is B tprintf

Tprintf is not a C function. But printf, f printf and sprintf is a C function.

printf:-

In C programming language, printf() function is used to print the “character, string, float, integer, octal and hexadecimal values” onto the output screen.

f printf:-

The fprintf() function is used to write set of characters into file. It sends formatted output to a stream. Syntax: int fprintf(FILE *stream, const char *format [, argument, ...])

sprintf:-

The sprintf() works just like printf() but instead of sendingoutput to console it returns the formatted string. Syntax: int sprintf(char *str, constchar *control_string, [ arg_1, arg_2, ... ]); The first argument to sprintf() function is a pointer to the target string.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Binary Operations
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon