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

what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

0 Answers   L&T,


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


How can I direct output to the printer?

0 Answers  


Program to find the absolute value of given integer using Conditional Operators

6 Answers   N Tech,


Sir,please help me out with the output of this programme:- #include<stdio.h> #include<conio.h> void main() { int a=18,b=12,i; for(i=a<b?a:b;a%i||b%i;i--); printf("%d %d",i); }

4 Answers  






Can we assign string to char pointer?

0 Answers  


In the below code, how do you modify the value 'a' and print in the function. You'll be allowed to add code only inside the called function. main() { int a=5; function(); // no parameters should be passed } function() { /* add code here to modify the value of and print here */ }

1 Answers  


How to declare pointer variables?

0 Answers  


When should a type cast be used?

0 Answers  


how to find out the union of two character arrays?

2 Answers  


Is python a c language?

0 Answers  


WHAT IS MEANT BY LIFE?

2 Answers  


Categories