storing char* array in C -
I am trying to create and store an char *
array.
So, first I tried it:
int main () {char * values [3]; Value [0] = "Hello"; Value [1] = "Mu meow"; Value [2] = "Miyau Miyau = 3"; For (int i = 0; i
It works with this output:
Hello Mev Mew Meu Mia = 3
I try:
printf ("% s", "Tamono del Dicionario:"); Int tam; Scanf ("% i", and tam); Four * dick [tam]; Word [tam]; For (int i = 0; i & lt; tm; i ++) {printf ("palabra% d:", (I + 1)); Scan ("% 32s", & amp; dic [i]); } For (int i = 0; i
Show non-legible stuff like "0xassdfsdf"
What can I do to store it in the correct storage?
#include & lt; Stdio.h & gt; # Include & lt; Stdlib.h & gt; Int main () {char * value [3]; Value [0] = "Hello"; Value [1] = "Mu meow"; Value [2] = "Miyau Miyau = 3"; For (int i = 0; i
Comments
Post a Comment