3 //single line comment
\r
13 /* use tab == (4 spaces)
\r
14 * or 2tab == (8 spaces)
\r
19 //remove spaces at the end of lines
\r
21 //one empty line between functions
\r
22 const char *idea_options(void){
\r
23 <------>if (sizeof(short) != sizeof(IDEA_INT)) // please do not use shortenings
\r
25 <------><-->return ("idea(int)");
\r
27 <------><-->return ("idea(short)");
\r
31 //alternative usual notation
\r
32 <------>if (sizeof(short) != sizeof(IDEA_INT)) { // please do not use shortenings
\r
33 <------><-->return ("idea(int)");
\r
35 <------><-->return ("idea(short)");
\r
39 /* ##########################
\r
40 * each function or procedure
\r
41 * begins & ends with a brace
\r
46 <------>printf("hello, world\n");
\r
47 <------>for (count=1; count < 11; count = count + 1)
\r
49 <------><-->printf(" %d\n", count);
\r
52 <------>//one empty line between codeblocks
\r
53 <------>while(i < x)
\r
55 <------><-->printf(" %d\n", i);
\r