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 / moolshankershukla

first define :
char c;
printf("enter character ");
c=getchar();

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pointer and structure in c?

568


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2155


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

651


What is use of null pointer in c?

563


What is meant by keywords in c?

614






Is printf a keyword?

755


What are enums in c?

655


Can we declare variables anywhere in c?

575


Explain the process of converting a Tree into a Binary Tree.

2098


What is the explanation for prototype function in c?

565


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

3138


How can I avoid the abort, retry, fail messages?

655


How can I make sure that my program is the only one accessing a file?

675


What is c standard library?

687


What is the difference between printf and scanf in c?

745