0
C - string
How can I create a string var in C (If donât use scanf())
3 Answers
+ 3
And yeah, it is not as convenient as in the other languages you started - that's C for you. đ
+ 2
Use fgets()..
fgets(charArray, maxsize, input_console) ;
+ 1
There is a way for that. Here's an example,
string c; or string s = " ". You can also declare it in a for loop.