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 / shashiprabha singh
c=getchar() is the right ans
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the time and space complexities of merge sort and when is it preferred over quick sort?
Why are all header files not declared in every c program?
how to construct a simulator keeping the logical boolean gates in c
Why dont c comments nest?
What is a string?
what is the format specifier for printing a pointer value?
Write a program to print all permutations of a given string.
Explain modulus operator.
Why is void main used?
Are local variables initialized to zero by default in c?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
Explain how can you be sure that a program follows the ansi c standard?
What does int main () mean?
Is exit(status) truly equivalent to returning the same status from main?