Question

What is the primary use of the printf function in C/C++ programming?

A To allocate memory dynamically during program execution.
B To perform input operations from the standard input device, such as the keyboard.
C To print formatted output to the standard output device, usually the console.
D To define and declare variables within a program.
E To compile source code into machine code for execution.
Practice Next

Hey! Ask a query