what is difference between getchar,putchar functions and
printf and scanf function? does putchar show output only
when input given to it

Answer Posted / akash kumar

getchar() reads one character from the "standard input",which is usually the user's keyboard. the syntax of the getchar() function is written as: character variable=getchar(). putchar() read's one character from the " standard output", which is usually the user's keyboard. the syntax of the putchar() function is written as : putchar ( character variable ). printf print the text , scanf reads the input ..... 

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you print TATA alone from TATA POWER using string copy and concate commands in C?

1148


What is the difference between text files and binary files?

939


How many main () function we can have in a project?

854


What are examples of structures?

785


What are the disadvantages of a shell structure?

937


What is the maximum length of an identifier?

881


What is static function in c?

828


How will you declare an array of three function pointers where each function receives two ints and returns a float?

1044


while initialization of array why we use a[][2] why not a[2][]...?

2082


What is return in c programming?

706


How many bytes is a struct in c?

896


When is a “switch” statement preferable over an “if” statement?

853


What are comments and how do you insert it in a C program?

953


Which function in C can be used to append a string to another string?

887


Explain output of printf("Hello World"-'A'+'B'); ?

1169