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

Explain about C function prototype?

612


Do you know null pointer?

612


what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?

1907


Can you return null in c?

598


Define VARIABLE?

691






In which header file is the null macro defined?

857


What is the difference between ++a and a++?

698


What does volatile do?

568


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

627


What are identifiers and keywords in c?

574


What are disadvantages of C language.

650


What is static memory allocation? Explain

633


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1919


In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)

1634


What is the difference between memcpy and memmove?

606