what is difference between getchar,putchar functions and
printf and scanf function? does putchar show output only
when input given to it

Answer Posted / suji

getchar() gets only one character from the input.putchar
prints that character.printf prints the text that enter
within doublequotes.scanf gets morethan one input from
console.getchar & putchar gets&puts from & to file.

Is This Answer Correct ?    6 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between near, far and huge pointers?

629


Write a program to reverse a given number in c?

602


Where are some collections of useful code fragments and examples?

716


What is typedef struct in c?

584


What is the use of extern in c?

650






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.

3692


Why is it important to memset a variable, immediately after allocating memory to it ?

1556


What is the importance of c in your views?

597


What are header files in c programming?

657


how can use subset in c program and give more example

1502


Explain how can you restore a redirected standard stream?

593


What is a stream?

651


What is the use of #include in c?

580


How do you convert strings to numbers in C?

710


int i[2], j; int *pi;i[0] = 1; i[1] = 5; pi = i; j = *pi + 1 + *(pi + 1)Value of j after execution of the above statements will be a) 7 b) 6 c) 4 d) pointer

657