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

Answers were Sorted based on User's Feedback



which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / vignesh1988i

b id the correct option.......


c=getchar(void)


thank u

Is This Answer Correct ?    26 Yes 0 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / cynthia,1st b.sc.,itm

option b)c=getchar()

Is This Answer Correct ?    13 Yes 0 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / sagar

b)c=getchar()

Is This Answer Correct ?    7 Yes 0 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / moolshankershukla

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

Is This Answer Correct ?    5 Yes 0 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / himanshu

b

by himanshu kiims

Is This Answer Correct ?    6 Yes 2 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / shashiprabha singh

c=getchar() is the right ans

Is This Answer Correct ?    4 Yes 0 No

which one of follwoing will read a character from keyboard and store in c a)c=getc() b)c=getchar..

Answer / jalal

b)c=getc(c)

Is This Answer Correct ?    7 Yes 5 No

Post New Answer

More C Interview Questions

In a switch statement, explain what will happen if a break statement is omitted?

0 Answers  


wat are the two methods for swapping two numbers without using temp variable??

2 Answers  


can u give me the good and very optimised code for a car racing game?

0 Answers  


what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1

0 Answers  


What is the difference b/w Structure & Array?

6 Answers  






Explain the use of 'auto' keyword in c programming?

0 Answers  


What does & mean in scanf?

0 Answers  


What should not contain a header file?

2 Answers  


How do I send escape sequences to control a terminal or other device?

0 Answers  


what is the difference between postfix and prefix unary increment operators?

3 Answers  


When was c language developed?

0 Answers  


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

0 Answers  


Categories