R
Richard
Nick Keighley said:I'm with you here. Why type it wrong then indent it? Why not do
it right in the first place?
If anyone says that they are either more of a beginner than you or have
never programmed C in industry.
Do NOT leave white space like that.
The code should be
  fp=fopen("file","wb");
The grip WAS about braces and multiple statements on one line. You would
know that if you READ what is being said to you
I think this just demonstrates that different people have different
opinons.
I find the compressed version hard to read (do you have a whitespace
shortage where you work?). For the record I am not a beginner and I
have
programmed C in industry.
I use ws like this
fp = fopen ("file", "wb");
I accept
fp = fopen("file", "wb");
stuff[*] like this
fp=fopen("file","wb");
That would never have passed any code reviews on code bases I have
worked. Consistency is the god. And we always settled on minimum padding
"in statement".
But as I said before, all to their own. I just highly recommend against
it. C's syntax is there for a reason and I do not need white spaces to
spot a bracket or a comma.