Ask your own question, for FREE!
Computer Science 10 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
Arriyanalol: i need help
3 days ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
3 days ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 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!