Skip to content

Tag Archives: c-input-output

C is a procedural programming language. It was initially developed by Dennis Ritchie as a system programming language to write an operating system. The main… Read More
Given a string S consisting of space-separated integers, the task is to write a C program to take the integers as input from the string… Read More
Formatting in C In C language format specifiers are used to input and output. It is a way to tell the compiler what type of… Read More
The task is to write a program to print Hello World without using main() and semicolon. As we already know how to print Hello World… Read More
Any time you use an *f function, whether it be printf, scanf, or their derivatives (fprintf, fscanf, etc…), you are doing more things than you… Read More
scanf() It is used to read the input(character, string, numeric data) from the standard input(keyboard). It is used to read the input until it encounters… Read More
C language has standard libraries that allow input and output in a program. The stdio.h or standard input output library in C that has methods… Read More
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… Read More
The format specifier is used during input and output. It is a way to tell the compiler what type of data is in a variable… Read More
It is one of the basic need a program may required i.e clear the console during execution time.There is function named clrscr() which is included… Read More
Why there is need of using ‘&’ in case if scanf function while not in case of printf function. Examples: scanf("%d %d", &a, &b); printf("%d… Read More
There are some less known facts in C related to octal numbers. Let us look at the below example code first. Examples: // program to… Read More
fflush() is typically used for output stream only. Its purpose is to clear (or flush) the output buffer and move the buffered data to console… Read More
We can take string input in C using scanf(“%s”, str). But, it accepts string only until it finds the first space. There are 4 methods by… Read More
scanf() : The C library function int scanf (const char *format, …) reads formatted input from stdin. Syntax: int scanf(const char *format, ...) Return type:… Read More