Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
Web Technologies
40.3k+ articles
C++
4k+ articles
C Language
1.8k+ articles
C Quiz
280+ articles
C-Library
120+ articles
GFacts
70 articles
cpp-input-output
68 articles
c-puzzle
30 articles
c-input-output
26 articles
Input and Output
20 articles
C-Input and Output Quiz
25 posts
Popular Articles
Recent 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 a
...read more
c-input-output
cpp-input-output
C Language
C++
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.[sourcecode language="C" highlight=""]#includestdio.h int main(){
...read more
c-input-output
C Language
C-Input and Output Quiz
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 otherwis
...read more
c-input-output
C Language
C-Input and Output Quiz
Similar Topics
Web Technologies
40.3k+ articles
C++
4k+ articles
C Language
1.8k+ articles
C Quiz
280+ articles
C-Library
120+ articles
GFacts
70+ articles
cpp-input-output
68+ articles
c-puzzle
30+ articles
c-input-output
26+ articles
Input and Output
20+ articles
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 specifi
...read more
c-input-output
C Language
C-Input and Output Quiz
C-Library
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
...read more
c-input-output
C Language
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 a
...read more
c-input-output
C Language
C-Input and Output Quiz
C | Input and Output | Question 3
Last Updated: 28 June 2021
[sourcecode language="C"]#include stdio.hint main() { printf( \GEEKS %% FOR %% GEEKS\); getchar(); return 0; }[/sourcecode](A) “GEEK
...read more
C Language
C Quiz
C-Input and Output Quiz
Input and Output
C | Input and Output | Question 2
Last Updated: 12 April 2022
Predict output of the following program[tabby title="C"][sourcecode language="c"]#include int main(){ printf("\new_c_question\
...read more
C Language
C Quiz
C-Input and Output Quiz
Input and Output
C | Input and Output | Question 13
Last Updated: 28 June 2021
Predict the output of following program?[sourcecode language="C"]#include stdio.hint main(){ char arr[100]; printf(%d, scanf(%s, arr))
...read more
C Language
C Quiz
C-Input and Output Quiz
Input and Output
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
...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 artic
...read more
C Language
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 cor
...read more
C Language
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 buff
...read more
GFacts
C Language
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
...read more
GFacts
cpp-input-output
C Language
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 dir
...read more
c-puzzle
C Language
C-Input and Output Quiz
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
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 !