This is styles of writing code. The style of code does not really make any difference in the long run. However, if you try and enforce one style over another then you can entice many, many, many arguements. So best to be flexible :).
The first one is K&R, the second is Allman
See this Indent Styles link for further info on other styles and how they all differ.