Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

Which looks better? do { //stuff } while (condition); or do { } while (condition); or do { } while (condition); also, which is better looking? typedef struct { //fields } my_object; or typedef struct { //fields } myobject; or typedef struct { //fields } myobject;

OpenStudy (anonymous):

do { } while (condition);

OpenStudy (anonymous):

It's really subjective and only up to personal preference. I prefer the second form of both for best readability.

OpenStudy (anonymous):

As opiesche has mentioned it is subjective, and really a matter of opinion. I personally like... do { this; } while (condition); This may just be because it is what I am used to seeing. I have worked with many programmers on various projects outside of school and programmers' code is almost always (at least from what I've seen) in that form. You may enjoy this wikipedia page about indenting styles... http://en.wikipedia.org/wiki/Indent_style

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
6 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
9 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
9 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!