+ 1
//fgets(city,40,stdin); <--when we write the function (fgets) that time identifie,size of arry(strlen) & standard input.
That's written compulsory? I mean // fgets(city, 40, stdin); in this function CITY is a identifier, 40 is a size of arry (string lenght) & standard input (stdin)... This I have to write compulsory in my code ?
6 Respuestas
+ 4
Yes, compulsorily. That's how fgets works.
40 is the maximum number of characters to be read, but yes you usually use the array length
+ 4
You are welcome 🤗
+ 4
Oh and just to be accurate: you need to specify a pointer to a FILE, but it doesn't have to be necessarily stdin.
+ 4
#$ŪPĒŘŠ.Å.Đ. 🤣🤣🤣 even my English is bad
+ 2
Ok. thanks. 😄✌💪💎
+ 2
PhD dreaming at my bed .🤣🤣🤣🤣🤣🤣🤣👏🏻👏🏻👏🏻👏🏻