0

Doubt in the below code, regarding printing sizeof structure value?

When I try to run the below program,I get error message. I don't know, why does this error message coming? Please tell me, how to avoid this error message and why it is happening https://code.sololearn.com/cSS1XcRULCKL/?ref=app

2nd Sep 2021, 4:21 PM
Yogeshwaran P
Yogeshwaran P - avatar
5 odpowiedzi
+ 1
Printf() should be inside of a block/function. Suggestions: place your printf (line no. 11) into main function
2nd Sep 2021, 4:31 PM
Rupali Haldiya
Rupali Haldiya - avatar
+ 3
This number is plateform dependant. Here a int is 4 octets long and the pointer (a adress) is 12 octet long
2nd Sep 2021, 4:52 PM
Bernard Bordja
+ 1
You're welcome :)
2nd Sep 2021, 4:49 PM
Rupali Haldiya
Rupali Haldiya - avatar
+ 1
Thank you Bernard Bordja (•‿•)
3rd Sep 2021, 1:29 PM
Yogeshwaran P
Yogeshwaran P - avatar
0
Thank you rupali ,now my code is working fine(✿^‿^)
2nd Sep 2021, 4:44 PM
Yogeshwaran P
Yogeshwaran P - avatar