Explain different input and output functions in c with example (scanf,printf,gets,puts).

Question

Explain different input and output functions in c with example (scanf,printf,gets,puts).
🧐 Not the exact question you are looking for?Go ask a question

Solution 1

Sure, here are some of the most commonly used input and output functions in C:

  1. scanf: This is an input function used to read data from the keyboard. It reads the value, converts it into the specified data type and then stores it in the memory.

Example:

int num;
printf("Enter a number: ")
    Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study prob
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solve study problem.
Knowee AI StudyGPT is a powerful AI-powered study tool designed to help you to solv

This problem has been solved

Similar Questions

Explain different input and output functions in c with example (scanf,printf,gets,puts).

Which of the following function is more appropriate for reading in a multi-word string? ans. scanf() printf() gets() puts()

Which of the following function is more appropriate for reading in a multi-word string? gets() puts() scanf() printf()

Which of the following function is more appropriate for reading in a multi-word string? ans. gets() puts() printf() scanf()

Which of the following function is more appropriate for reading in a multi-word string?ans.puts()scanf()gets()printf() Previous Marked for Review Next

1/3