Skip to content

Tag Archives: c-input-output

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. #include<stdio.h>     int main() {    int x = 1987;    printf("%d", printf("%d", printf("%d",… Read More
Below are some interesting facts about C programming: 1) The case labels of a switch statement can occur inside if-else statements. #include <stdio.h>    int… Read More
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… Read More
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… Read More
All of these functions read a character from input and return an integer value. The integer is returned to accommodate a special value used to… Read More
printf: printf function is used to print character stream of data on stdout console. Syntax : int printf(const char* str, ...); Example : // simple… Read More

Start Your Coding Journey Now!