C Style Guidelines

  • Introduction
  • Variable Names
  • Function Names
  • Main Function
  • Indentation
  • Brace Placement
  • Brace Usage
  • Parentheses
  • Operators Clarity

Introduction

This document describes recommended coding standard for writing C programs. It is developed as additional learning material for Informatik fur Mathematiker und Physiker course taught at ETH Zurich.

References and sources used in making of this document:

  • http://www.possibility.com/Cpp/CppCodingStandard.html
  • https://cs50.readthedocs.io/style/c/
  • http://www.cs.umd.edu/~nelson/classes/resources/cstyleguide/
  • http://www2.cs.arizona.edu/~mccann/cstyle.html
Informatik fur Mathematiker und Physiker ETH Zurich 2018.