0
C - string
How can I create a string var in C (If don’t use scanf())
3 Antworten
+ 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.