+ 1

Question regarding pointers..

1) Can somebody tell me the mechanism in line 5: since word is a reference to the address of the 'word' array it should be a number or some kind of hexadecimal or somethin..but howcome when we use(%s,word)it prints out the charector array how doee%s deal with word? 2) Why does printing(%d,&word[0]) print out a big integer that changes everytime the program runs rarher than a hexadecimal address.. 3) And why is &word[0]==word while taking both as integers since word is a char array.. Please Help https://code.sololearn.com/cgwGB3vl6n31/?ref=app

17th Mar 2020, 9:30 AM
Y AD Ù
Y AD Ù - avatar
1 Odpowiedź
0
~ swim ~ need some light here bud..
17th Mar 2020, 9:31 AM
Y AD Ù
Y AD Ù - avatar