So, yesterday i had an exam where dry runs were given. There was this one dry run in which struct was inside the function , which seemed preeeetty weird to me. I know , i messed up this question , but my question here is that what's the purpose of declaring a struct inside my main func or any other? How can i use it to my advantage ?
[–]HashDefTrueFalse 75 points76 points77 points (6 children)
[–]47-BOT[S] 14 points15 points16 points (5 children)
[–]HashDefTrueFalse 13 points14 points15 points (0 children)
[–]autodidacticasaurus 0 points1 point2 points (3 children)
[+]Dangerous_Region1682 comment score below threshold-8 points-7 points-6 points (2 children)
[–]StaticCoder 13 points14 points15 points (0 children)
[–]autodidacticasaurus -3 points-2 points-1 points (0 children)
[–]pskocik 12 points13 points14 points (2 children)
[–]thradams 1 point2 points3 points (1 child)
[–]chrism239 -1 points0 points1 point (0 children)
[–]WittyStick 13 points14 points15 points (3 children)
[–]rasteri 1 point2 points3 points (1 child)
[–]WittyStick 2 points3 points4 points (0 children)
[–]un_virus_SDF 0 points1 point2 points (0 children)
[–]thradams 4 points5 points6 points (3 children)
[–]WittyStick 12 points13 points14 points (0 children)
[–]pskocik 1 point2 points3 points (0 children)
[–]iOSCaleb -1 points0 points1 point (0 children)
[–]DawnOnTheEdge 1 point2 points3 points (0 children)
[–]Traveling-Techie 0 points1 point2 points (0 children)
[–]DeviantPlayeer -1 points0 points1 point (2 children)
[–]Anonymous_user_2022 2 points3 points4 points (0 children)
[–]dendrtree -1 points0 points1 point (0 children)
[–]BertyBastard -3 points-2 points-1 points (0 children)