Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Misc
8.8K+ articles
C++
4.3K+ articles
C Language
1.8K+ articles
C-Library
133+ articles
cpp-input-output
68+ articles
GFacts
43+ articles
c-puzzle
30+ articles
c-input-output
28+ articles
C-Input and Output Quiz
12 posts
Recent Articles
Popular Articles
Input an integer array without spaces in C
Last Updated: 13 December 2018
How to input a large number (a number that cannot be stored even in long long int) without spaces? We need this large number in an integer array such that every array elem...
read more
Misc
C Language
C++
c-input-output
cpp-input-output
C-Input and Output Quiz
How to print % using printf()?
Last Updated: 04 April 2025
Here is the standard prototype of printf function in C:int printf(const char *format, ...);The format string is composed of zero or more directives: ordinary characters (n...
read more
C Language
c-puzzle
C-Input and Output Quiz
Return values of printf() and scanf() in C/C++
Last Updated: 29 November 2020
What values do the printf() and scanf() functions return ?printf() : It returns total number of Characters Printed, Or negative value if an output error or an encoding err...
read more
C Language
GFacts
cpp-input-output
C-Input and Output Quiz
What is return type of getchar(), fgetc() and getc() ?
Last Updated: 07 January 2025
In C, getchar(), fgetc(), and getc() all are the functions used for reading characters from input buffer. This buffer is standard input buffer for getchar() and can be any...
read more
C Language
GFacts
C-Input and Output Quiz
What is use of %n in printf() ?
Last Updated: 09 October 2019
In C printf(), %n is a special format specifier which instead of printing something causes printf() to load the variable pointed by the corresponding argument with a valu...
read more
C Language
C-Input and Output Quiz
puts() vs printf() for printing a string
Last Updated: 15 November 2023
In C, both puts() and printf() functions are used for printing a string on the console and are defined in stdio.h header file. In this article, we will discuss the differe...
read more
C Language
C-Input and Output Quiz
Scansets in C
Last Updated: 06 July 2021
scanf family functions support scanset specifiers which are represented by %[]. Inside scanset, we can specify single character or range of characters. While processing sc...
read more
C Language
C-Input and Output Quiz
Problem With Using fgets()/gets()/scanf() After scanf() in C
Last Updated: 04 January 2022
scanf() is a library function in C. It reads standard input from stdin. fgets() is a library function in C. It reads a line from the specified stream and stores it into th...
read more
C Language
c-input-output
C-Input and Output Quiz
C-Library
scanf() and fscanf() in C
Last Updated: 10 January 2025
In C language, scanf() function is used to read formatted input from stdin. It returns the whole number of characters written in it otherwise, returns a negative value.Syn...
read more
C Language
c-input-output
C-Input and Output Quiz
Nested printf (printf inside printf) in C
Last Updated: 13 December 2018
Predict the output of the following C program with a printf inside printf.C #includestdio.h int main(){ int x = 1987; printf(%d, printf(%d, printf(%d, x)));...
read more
C Language
c-input-output
C-Input and Output Quiz
What is the difference between printf, sprintf and fprintf?
Last Updated: 03 January 2025
The printf() function is used as a standard method for output operations and C also provides some different versions of this function such as sprintf() and fprintf(). Thes...
read more
C Language
c-input-output
C-Input and Output Quiz
Difference between getc(), getchar(), getch() and getche()
Last Updated: 07 January 2025
In C, getc(), getchar(), getch(), and getche() are all functions that is used to read input character in different contexts. Although these functions are used for similar ...
read more
C Language
c-input-output
C-Input and Output Quiz
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !