All three functions output a single character, either to the console or to a FILE. putc() takes a character argument, and outputs it to the specified FILE. fputc() does exactly the same thing, and differs from putc() in implementation only. Most people use fputc(). putchar() writes the character to the console, and is the same as calling putc(c, stdout). puts() is a multicharacter function and putchar() is single character function
you can put the printf function inside a if() so that you need not use semicolons. for eg to print my name, if(printf("My Name is Maheedharan")) {} this will work. try this out...
I know this can be done or your teacher would not have given this question as homework. The truth is I do not have a clue how to do this because in the real world it is not necessary to know or be able to do this. Ask your teacher or read your text book.
stdin is short for "standard input." When you input data into the terminal while the program is running, this is where it goes.stdout is short for "standard output." This is where all of the data that you print out of your program (via printf(), puts(), etc.) goes. stderr is short for "standard error." This is where you should print your error messages to (via fprintf(), fputs(), etc.).
Direction: gets: from standard input to memory puts: from memory to standard input note: 'gets' is unsafe, use 'fgets' instead
The main differences between the Class 90 and Class 91 were comfort whereby Class 91 was more comfortable.
C: puts, printf, fputs, fprintf, write, fwrite...
There is still Caste System (social classes) in India and it puts differences between the people.
You can choose from puts, fputs, fwrite, write (or even putchar, putc, fputc). I hope this will help you to start.
There is still Caste System (social classes) in India and it puts differences between the people.
#include<stdio.h> void main() { FILE *fp; char name[20],ch; char *roll; fp=fopen("specifies file path","w"); if(fp!=NULL) { do{ printf("input roll_no"); gets(roll); printf("\ninput student name"); gets(name); fputs(roll,fp); fputs("\t",fp); fputs(name,fp); fputs("\n",fp); printf("you want to continue y/n"); ch=getch(); }while(ch=='y'); } }
Tape sticks things together, and staples puts two itty-bity hole in the paper and a metal staple closes and folds
You can use fputs() instead of printf().
A proposer puts something forth for consideration, discussion, or adoption.An insurer is a person or company that underwrites insurance risk. They are the party that pays the compensation in an insurance contract.
you can put the printf function inside a if() so that you need not use semicolons. for eg to print my name, if(printf("My Name is Maheedharan")) {} this will work. try this out...
When you scan a document it puts a copy into the computer attached to the scanner or the memory of the scanner. But copying is a one time shot and you can not retrieve a copy of what you put through again.
what is the name for an agreement between countries that often puts an end to a dispute
I know this can be done or your teacher would not have given this question as homework. The truth is I do not have a clue how to do this because in the real world it is not necessary to know or be able to do this. Ask your teacher or read your text book.