+ 2

// can any told me why its showing warning and how to avoid warning? https://code.sololearn.com/cnp9Vsvs943J/?ref=app

Printing address of variable. https://code.sololearn.com/cnp9Vsvs943J/?ref=app

25th Feb 2021, 9:58 PM
NIKHIL JOSHI
NIKHIL JOSHI - avatar
5 odpowiedzi
+ 3
Hello, you should add program in description , (better to share code link)
25th Feb 2021, 9:59 PM
Abhay
Abhay - avatar
+ 2
NIKHIL JOSHI remove those "&" before i in printf's . Error is clearly saying that it expected unsigned int (i) but it got type int* (&i).
25th Feb 2021, 10:31 PM
Abhay
Abhay - avatar
+ 2
NIKHIL JOSHI probably due to %x .
26th Feb 2021, 7:42 AM
Abhay
Abhay - avatar
0
Abhay by removing '&' it is printing '0'
26th Feb 2021, 5:12 AM
NIKHIL JOSHI
NIKHIL JOSHI - avatar