+ 1

How 1-D char array is initialised if the name of the array only provides the base address of the array?

Since the name of 1-D array is the address of its first element only... How the input of string is taken where each character of the string requires a different address but scanf() only provides the base address to store the first character of the string .. Then how it stores other characters in other addresses of the char array? https://code.sololearn.com/ctf2x21n9CO0/?ref=app

19th Jun 2019, 12:42 PM
Krishna Kumar
Krishna Kumar - avatar
0 Antworten