Tag Archives: c-input-output

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: filter_none edit close… 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 first space. There are 3 method 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
Predict the output of the following C program with a printf inside printf. filter_none edit close play_arrow link brightness_4 code #include<stdio.h>     int main() {… Read More
Below are some interesting facts about C programming: 1) The case labels of a switch statement can occur inside if-else statements. filter_none edit close play_arrow… Read More