I am having problem with fgets accepting string from the keyboard.
I have this statement :
fgets(T , sizeof(T) , stdin); in the code, but this thing is not accepting anything. I mean I have 2 strings to accept where I used fgets for the first, and then scanf for the second...
Only the scanf is being accepted.
I tried variants for fgets where
sizeof(T) would be some int value. Originally the string was a part of a struct, but I made into T and copied into struct string... None work
Any help is greatly appreciated,