About 55 results
Open links in new tab
  1. gets () function in C - Stack Overflow

    Dec 3, 2010 · Ironically, the gets() routine is an obsolete function that provided compatibility with the very first version of the portable I/O library, and was replaced by standard I/O more than a decade …

  2. C - scanf () vs gets () vs fgets () - Stack Overflow

    Jul 10, 2015 · And the difference between gets/scanf and fgets is that gets(); and scanf(); only scan until the first space ' ' while fgets(); scans the whole input. (but be sure to clean the buffer afterwards so …

  3. Why is gets() not consuming a full line of input? - Stack Overflow

    Nov 20, 2022 · I'm trying to use gets() to get a string from the user, but the program seems to be passing right over gets(). There is no pause for the user to give input. Why is gets() not doing …

  4. Какая разница между puts и printf или gets и scanf?

    Apr 21, 2017 · puts выводит переданную строку и символ новой строки, а printf - генерирует выводимую строку на основании строки формата и дополнительных данных. Если коротко. …

  5. What's the difference between gets and scanf? - Stack Overflow

    Oct 28, 2014 · gets - Reads characters from stdin and stores them as a string. scanf - Reads data from stdin and stores them according to the format specified int the scanf statement like %d, %f, %s, etc.

  6. c++ - проблема с функцией gets () - Stack Overflow на русском

    Jan 2, 2018 · Это не тот код - по ссылке у вас fgets, а не gets! Вы случаем не Visual C++ 2015 или 2017 компилируете? Если заменить fgets на gets - да, эти компиляторы не компилируют - …

  7. gcc - gets () problem in C - Stack Overflow

    Oct 21, 2012 · 0 gets is dangerous because it lets you read in more data than you've allocated space for, you can use fgets which specifies how many characters it is going to read in and stops if it finds a …

  8. Why was the gets function removed instead of just changing its ...

    Jun 20, 2025 · 2 Why was the gets function removed instead of just changing its signature? At least in part because removing gets() from the language specification does not mean that implementations …

  9. c - puts (), gets (), getchar (), putchar () function simultaneously ...

    Feb 23, 2021 · I have a confusion related to using puts(), gets(), putchar() and getchar() simultaneously use in the code. When I have run the below code, it is doing all steps: taking the input, printing the …

  10. Como usar gets () no C++? - Stack Overflow em Português

    May 30, 2015 · Como usar gets() no C++, ao se pedir para o digitar e armazenar numa variável tipo char?