Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis0
C - string
How can I create a string var in C (If donāt use scanf())
3 Respostas
+ 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.