Skip to content

Tag Archives: Input and Output

Every program takes some data as input and generates processed data as an output following the familiar input process output cycle. It is essential to… Read More
The cin object in C++ is used to accept the input from the standard input device i.e., keyboard. it is the instance of the class… Read More
The cout object in C++ is an object of class ostream. It is defined in iostream header file. It is used to display the output… Read More
The cin object in C++ is an object of class iostream. It is used to accept the input from the standard input device i.e. keyboard.… Read More
There are two methods in which input can be taken in a more secure way: Do not display any content. Display a special character such… Read More
The Scanner class in java.util package used for obtaining the input of the primitive types like int, double, etc. and strings. It is the easiest… Read More
Java IO(Input/Output) is used to perform read and write operations. The java.io package contains all the classes required for input and output operation. Whereas, Java… 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
What is the return type of getchar()? (A) int (B) char (C) unsigned char (D) float Answer: (A) Explanation: The return type of getchar() is… Read More
Output of following program?Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check… Read More
Predict the output of following program?Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many… Read More
Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out our Data… Read More
What does the following C statement mean?Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and… Read More
Which of the following is true (A) gets() doesn’t do any array bound testing and should not be used. (B) fgets() should be used in… Read More
Which of the following is true (A) gets() can read a string with newline characters but a normal scanf() with %s can not. (B) gets()… Read More

Start Your Coding Journey Now!