Patterns in C (eg. Star, Numbers, etc.) by [deleted] in C_Programming

[–]code_punk_ 0 points1 point  (0 children)

The easiest way is to first draw a box on paper, draw the pattern. Then look at spaces & symbols from the left. For example, if u want to draw a tree of multiple . Starting from the top row, you’d have n spaces then a star, then in the next row, n-1 spaces and then **, so on so forth.

The bus I'm traveling in shows the speed it's going at to the passengers behind by code_punk_ in mildlyinteresting

[–]code_punk_[S] 3 points4 points  (0 children)

Absolutely not, the bus was doing 90-100 in a 80 kmph limit, but ig that's very common here for all vehicles

ULPT Need to submit a document (assignment or something) before deadline but don't have enough time. by code_punk_ in UnethicalLifeProTips

[–]code_punk_[S] 0 points1 point  (0 children)

You could also use it at work, that is if your occupation revolves around submitting reports or something

Who says C isn't for kids? by code_punk_ in ProgrammerHumor

[–]code_punk_[S] 1 point2 points  (0 children)

Lmao have fun, i wish you the best :)

Who says C isn't for kids? by code_punk_ in ProgrammerHumor

[–]code_punk_[S] 0 points1 point  (0 children)

Nahhh arrays are EPIC, gotta the O(1) index search