Home > Back-end >  On the keyboard to multiple pointer assignment string and output
On the keyboard to multiple pointer assignment string and output

Time:10-16

I for more characters from the keyboard pointer assignment why output when all the pointer to the string is the final value of the pointer

CodePudding user response:

The
refer to the original poster m0_46441940 response:
I for more characters from the keyboard pointer assignment why output when all the pointer to the string is the final value of the pointer

Beg god for help

CodePudding user response:

Who told you can direct the pointer input string, the space of the pointer from? Char * a * b * c is defines three pointer variable, rather than a string, a pointer is used to store address, or you into a string array, such as the maximum number of characters to 10, char a [10], or use new or malloc, allocate space, char * a=new char [10]

CodePudding user response:

refer to the second floor Italink response:
who told you can direct the pointer input string, the space of the pointer from? Char * a * b * c is defines three pointer variable, rather than a string, a pointer is used to store address, or you into a string array, such as the maximum number of characters to 10, char a [10], or use new or malloc, allocate space, char * a=new char [10]

Originally this ah, understand, thank you
  • Related