Studio.h

Share:
scanf()
funtion is usd to give data to the variables using keyboard
syntax:
scanf("control string",&var1,&var2,var3......varn);
printf()
function is used to output the result of the program to the user through VDU
The general form:
printf("control string",var1....varn);
gets()
the function is used to read a string character until new line character '\n' is entered
syntax

gets(variablename);
puts()
this function is defined as If successful, non-negative value is returned. On error, the function returns EOF
examole:
puts(variablename);
getchar()
function is used to read a single character from the keyboard
syntax:
variable name=getchar();
putchar()
This function returns the character written as an unsigned char cast to an int or EOF on error
syntax:
int putchar(int char);
putc()
this function is used to write a single character in a screen that has opened in write mode
Syntax: putc(c,pointer variable);
getc()
putc() takes a character argument, and outputs it to the specified FILE

int putc(int c, FILE *stream);


getw()
this function is used to read an integer value from file that has been opened in read mode
Syntax
getw(pointer variable);
putw()
this function is used to write a integer to the file
Syntax:
int putw( int c, FILE * stream );

fprintf()
this function is used to write data into a file
Syntax:
fprintf(ponter variable,"control string"list);

fscanf()
this function is used to read data from a file
Syntax:

fprintf("pointer variable,"control string",list);

 

No comments