which one of follwoing will read a character from keyboard
and store in c
a)c=getc()
b)c=getchar()
c)c=getchar(stdin)
d)getc(&c)
e)none

Answer Posted / shashiprabha singh

c=getchar() is the right ans

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the general description for loop statement and available loop types in c?

678


What are linked lists in c?

641


What is the benefit of using const for declaring constants?

579


Write a program to swap two numbers without using a temporary variable?

601


What is the difference between typedef and #define?

533






Do you know what are the properties of union in c?

576


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

639


What is wrong with this program statement?

602


How can you tell whether a program was compiled using c versus c++?

613


Find MAXIMUM of three distinct integers using a single C statement

618


How can I sort more data than will fit in memory?

619


Explain how do you determine a file’s attributes?

588


Why is %d used in c?

559


Can you please explain the difference between exit() and _exit() function?

584


What is the difference between variable declaration and variable definition in c?

556