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 which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a

2 Answers   BitWise,


What is calloc malloc realloc in c?

0 Answers  


What is #define size in c?

0 Answers  


What is #line in c?

0 Answers  


Explain how can I write functions that take a variable number of arguments?

0 Answers  






WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

0 Answers  


write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

0 Answers   Subex,


What is integer constants?

0 Answers  


What is a loop?

0 Answers  


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


How many parameters should a function have?

0 Answers  


can we declare a function inside the structure? ex: struct book { int pages; float price; int library(int,float); }b; is the above declaration correct? as it has function declaration?

2 Answers  


Categories