Skip to content

Code Reveiw

Yash edited this page Mar 8, 2019 · 1 revision

Low Level Design Documents:

Using Variant: 1TBS (OTBS) « Functions and control statement (if, while, for...) have their opening braces on the same line separated by a space. For consistency, the indentation depth has been kept constant at 4 spaces, regardless of the preferred indentation depth of each style.

void checknegative(x) {
    if (x < 0) {
        puts("Negative");
    } else {
        nonnegative(x);
    }
}

Clone this wiki locally