Home > Back-end >  Trouble bosses look
Trouble bosses look

Time:09-25

Char * s; The scanf (" % s ", s) excuse me, this is can, help to have a look at the trouble

CodePudding user response:

S not point to any location, printing results under GCC is null, but other compilers may be an error, do do not have what meaning

CodePudding user response:

Pointer to a string, can ah

CodePudding user response:

The
reference 2 floor? Victor.?? Response:
pointer to the string, can ah

Yes, you need to make an array

CodePudding user response:

Can't, wild pointer, the result is undefined, the results may be normal, also may appear error,

Suggested that the char * s=NULL; Initialize the

CodePudding user response:

Can't let, s no point to it
  • Related