0

Which is valid?

https://code.sololearn.com/cLxHts0KbT43/?ref=app https://code.sololearn.com/c8D7cn4o0lL8/?ref=app when run these codes I get error.. using codeblock.. type not defined.. something like that

30th Mar 2018, 9:29 AM
Otumian Empire
Otumian Empire - avatar
2 Answers
+ 1
I guess the second code doesn't work because Sololearn uses an old C version, where structs are implemented differently. For Codeblocks you could try using a newer C version as well, like C11, but the first code should work anyway
30th Mar 2018, 9:52 AM
Aaron Eberhardt
Aaron Eberhardt - avatar
0
thanks
31st Mar 2018, 10:05 AM
Otumian Empire
Otumian Empire - avatar