Computer Science, asked by rahulKumara8527, 1 year ago

gets() और puts() फंक्श नों में अन्तर बताइए।

Answers

Answered by roshinik1219
0

gets() is short for get_string.

puts() is short for put_string.

Step-by-step explanation:

gets() is short for get_string. we can  type a string and it saves it in the    memory.

  • If we want to read from the string user on run time, we can use the get () function for this.  
  • In this function, we can pass the name of the character array in which we want to store the string.  
  • All the characters entered by the user get stored in a char array.
  • In this null character is added to the array to make it a string.
  • The gets() function allows the user to enter the space-separated strings. It returns the string entered by the user.

puts() is short for put_string. this function will print a given string.

  • This function is used to print a char array as a complete string.
  • In this function, those character  arrays are passed which we want to print as a complete string.  
Similar questions