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

34.what are bitwise shift operators? 35.what are bit fields? What is the use of bit fields in a structure declaration? 36.what is the size of an integer variable? 37.what are the files which are automatically opened when a c file is executed? 38.what is the little endian and big endian? 39.what is the use of fflush() function? 40.what is the difference between exit() and _exit() functions? 41.where does malloc() function get the memory? 42.what is the difference between malloc() and calloc() function? 43.what is the difference between postfix and prefix unary increment operators?

3 Answers  


WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?

4 Answers  


What is uint8 in c?

0 Answers  


#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

14 Answers   CDAC, GATE, NDS, TCS,


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

0 Answers  






What is volatile c?

0 Answers  


#include<stdio.h> int main(){ int i=10; int *ptr=&i; *ptr=(int *)20; printf("%d",i); return 0; } Output: 20 can anyone explain how came the output is 20

0 Answers  


which one is better structure or union?(other than the space occupied )

2 Answers  


what are the advantages & disadvantages of unions?

2 Answers  


Tell me what is the purpose of 'register' keyword in c language?

0 Answers  


What is wrong with this statement? Myname = 'robin';

0 Answers  


What's wrong with the call "fopen ("c:\newdir\file.dat", "r")"?

1 Answers  


Categories