We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a87534c commit 4712b27Copy full SHA for 4712b27
CONVENTIONS.md
@@ -1,7 +1,7 @@
1
Coding Conventions
2
----
3
* For any language, your file must begin with comments in style given below (the comments must start at line 1 before any line of code) -
4
-```
+``` C
5
/* ===== ===== =====
6
7
Theory of Programming
@@ -60,3 +60,23 @@ if (a < 10 && b > 20) {
60
61
return 0;
62
```
63
+* But you don't need to add a new line before the ```return``` statement if it is the only statement in the block. Example -
64
65
+if (a < 10) {
66
+ return 0;
67
+}
68
+
69
+if (a < 5) {
70
+ // comment
71
72
73
74
+a = a + b * c;
75
76
+return 0;
77
+```
78
+* When you are using an end of line comment, please start with a space. Example -
79
80
+// right
81
+//wrong
82
0 commit comments