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
Answer / vignesh1988i
b id the correct option.......
c=getchar(void)
thank u
| Is This Answer Correct ? | 26 Yes | 0 No |
Answer / moolshankershukla
first define :
char c;
printf("enter character ");
c=getchar();
| Is This Answer Correct ? | 5 Yes | 0 No |
The difference between printf and fprintf is ?
Here is a neat trick for checking whether two strings are equal
what would be the output of the following prog? Justify your answer? main() { unsigned char ch; unsigned char i; ch = -255; printf("%d",ch); i = -1; printf("%d",i); }
Do you know the purpose of 'register' keyword?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?
#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..
Total of how many functions are available in c?
how to make c program without a libary? e.g.#include<stdio.h> libary is not in c progaram.
what is the difference between c and java?
What's the best way of making my program efficient?
What is structure padding and packing in c?
If "AaBbCc" is passed to the char char x(*a) { a[0]?x(a+1):1; printf("%c",a[0]); return 1; } what will be the output?