Ask your own question, for FREE!
Computer Science 18 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!
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!