Which of these functions is safer to use : fgets(), gets()? Why?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

What is wrong with this code such that it doesnt produce the input reversed? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char Space = ' '; char LineOfText; float count; LineOfText = getchar(); while ((LineOfText = getchar()) != '/n'); { count = strlen(LineOfText) - 1; while (count >= 0) { putchar(LineOfText[count]); count--; } } getchar(); return 0; }

2 Answers  


What are the applications of c language?

0 Answers  


What is difference between structure and union with example?

0 Answers  


What are the various types of control structures in programming?

0 Answers  


all c language question

0 Answers   Wipro,






What is the size of structure pointer in c?

0 Answers  


Write a C program to convert an integer into a binary string?

1 Answers  


Write a C program that reads a series of strings and prints only those ending in "ed"

2 Answers   Accenture,


main() { int a=0; if(a=0) printf("Ramco Systems\n"); printf("India\n"); } output?

7 Answers   Ramco,


Explain bitwise shift operators?

0 Answers  


what is diference between return 0 and return NULL??

3 Answers  


what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9

0 Answers  


Categories