COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
this function is used to print data on the console
A
0 VOID
B
PRINTF()
C
SCANF()
D
GETCH()
Explanation: 

Detailed explanation-1: -C++ printf is a formatting function that is used to print a string to stdout.

Detailed explanation-2: -The printf function (the name comes from “print formatted”) prints a string on the screen using a “format string” that includes the instructions to mix several strings and produce the final string to be printed on the screen.

Detailed explanation-3: -The printf() and scanf() functions are used for input and output in C language. Both functions are inbuilt library functions, defined in stdio.h (header file).

Detailed explanation-4: -The printf() function The printf() function is the most used function in the C language. This function is defined in the stdio. h header file and is used to show output on the console (standard output). Following is how the printf() function is defined in the C stdio.

Detailed explanation-5: -The Java printf function helps simplify the task of printing formatted output to the console, terminal window or log files. The Java printf function makes it easier to create informative strings of text without using String concatenation, or relying on non-standard characters that might trigger output errors.

There is 1 question to complete.