Connect with us

C Language



Which statement is correct for get and put functions in c

Correct Answer is: The get function read One character value and put function output One character value.

Explanation :
What is use of get() and put() functions in c ?
The get() and put() functions in C are used to read and write characters to the standard input and output streams, respectively.

What is difference between get() and put() functions in c ?

  • get() is a character-oriented function, while put() is a byte-oriented function.
    This means that get() will read a single character at a time, while put() will write a single byte at a time.
  • get() ignores whitespace characters, while put() does not.
    This means that get() will not read any spaces, tabs, or newline characters, while put() will write all of these characters.
  • get() returns the character that was read, while put() returns the number of bytes that were written.
    This means that get() can be used to read a single character, while put() can be used to write a string of characters.

Recently updated  


void main(void){
int shifty;
printf(“The value of shifty is %o \n”,shifty);

Q.In the context of while loop and Do while loop in C / C++, which of the following is not true

Q._____ in C language is also known as record.

Q.Which language is called as the second generation language ?

Q.The statement i++; is equivalent to:

Q.What is output of given c program:
int i = 8;
printf(“Welcome on Govtexamresults”);