Getchar:-Reading a single character can be done by using the function getchar.
Syntax:- variable_name = getchar ( );
Variable_name is a valid 'c' name that has been declared as char type. When this statement is encountered, the computer waits until a key is pressed and then assigns this character as a value to getchar function. Since getchar is used on the right hand side of an assignment statement, the character value of getchar is in turn assigned to the variable_name on the left. The getchar function may be called successively to read the characters contained in a line of text. Getchar accepts space character.
Scanf ("control strings",arg1, arg2, ………… argn);
The control string specifies the field format in which the data is to be entered and the arguments arg 1, arg 2, arg n specify the address of locations where the data is stored. Scanf does not accept space character.
Chat with our AI personalities
#include<stdio.h> Void main() { int a,b; printf("Enter a Number: "); // for print function as an out-put scanf("%d",&a); //for scan function as in input /* Here we can use print function once again as: */ a=a++; printf("%d",a); }
raster scan display -based on television technology.where as random scan display based on hard copy devices.raster scan display cannot directly pass electron beam through the scan line..but random scan directed the beam toward the scan line.
It is 'scanf', see the help.
In random scan display the electron beam is directed only to the part of the screen where the picture is to be drawn. Random Scan monitor draw one picture at a time therefore they are also known as vector display.refersh rate or random scan system depends on the number of times to be displayed. Picture definition is stored in an area of memory called refresh display file.
Just 200