Input statements extract data from an input stream. For example:
int x;
std::cin >> x;
Output statements insert data to an output stream. For example:
std::cout << x;
You cannot insert data into an input stream and cannot extract data from an output stream. However, streams that are both input and output streams (such as read-write files) can insert and extract data as required, depending on whether you are reading or writing to the stream.
using the input statement ,we can input the data into the computer .This statement provides the facility to input the data at the time of execution of the program and when the processing is complete ,we can give another data to the same variable ,which has been previously . when the inputs are given by using INPUT statement ,they cannot be a part of the program ,hence the same program can also process the other data
static BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
syntax input and output
is called a priming input
No.
create a program that can input 100 names
Statement S2 is anti-dependent on statement S1 if S2 follows S1 in program order and if the output of S2 overlaps the input of S1. The anti-dependence S1 to S2 define as cross arrow such as S1 |-> S2.
scanf: scanf is a built-in function to read input from the user.
is called a priming input
WHAT HAPPENS WHEN THE COMPUTER ENCOUNTERS AN INPUT STATEMENT
Input command is used to enter the values while the program is being executed. this command waits for the user to enter the information and then assigns the values accordingly.
WHAT HAPPENS WHEN THE COMPUTER ENCOUNTERS AN INPUT STATEMENT
In a computer program, a legal input is something that can be put into a program and it will work. An illegal input may crash the program.
without understanding the program giving a input
No.
create a program that can input 100 names
A robust program is a program that will accept junk input and not crash. Example: a program that accepts "pancakes" for a date input and pops up a error box or just uses a date input so that this does not happen is a robust program.
Statement S2 is anti-dependent on statement S1 if S2 follows S1 in program order and if the output of S2 overlaps the input of S1. The anti-dependence S1 to S2 define as cross arrow such as S1 |-> S2.
scanf: scanf is a built-in function to read input from the user.
input output bound program is a program (or process in precise way), which spends most of time allocated to it for execution, on input/output devices and need very small CPU time for it.