Skip to content

Commit 0442d01

Browse files
committed
mention style50 characters limit in style
1 parent df4bf85 commit 0442d01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

style/c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ There's no one, right way to stylize code. But there are definitely a lot of wro
44

55
## Line Length
66

7-
By convention the maximum length of a line of code is 80 characters long in C, with that being historically grounded in standard-sized monitors on older computer terminals, which could display 24 lines vertically and 80 characters horizontally. Though modern technology has obsoleted the need to keep lines capped at 80 characters, it is still a guideline that should be considered a "soft stop," and a line of 100 characters should really be the longest you write in C, else readers will generally need to scroll. If you need more than 100 characters, it may be time to rethink either your variable names or your overall design!
7+
By convention the maximum length of a line of code is 80 characters long in C, with that being historically grounded in standard-sized monitors on older computer terminals, which could display 24 lines vertically and 80 characters horizontally. Though modern technology has obsoleted the need to keep lines capped at 80 characters, it is still a guideline that should be considered a "soft stop." With tools like style50, a hard limit of 100 characters is enforced, beyond which the code may not pass style checks. A line of 100 characters should really be the longest you write in C, else readers will generally need to scroll. If you need more than 100 characters, it may be time to rethink either your variable names or your overall design!
88

99
```c
1010
// These next lines of code first prompt the user to give two integer values and then multiplies those two integer values together so they can be used later in the program

0 commit comments

Comments
 (0)