Skip to main content
CPlus's user avatar
CPlus's user avatar
CPlus's user avatar
CPlus
  • Member for 1 year, 11 months
  • Last seen this week
  • United States
About

profile for user16217248 on Stack Exchange, a network of free, community-driven Q&A sitesprofile for user16217248 at Stack Overflow, Q&A for professional and enthusiast programmersprofile for user16217248 at Programming Language Design and Implementation Stack Exchange, Q&A for designers and implementers of computer programming languages

Interested in programming and the physical sciences. I primarily use C and C++ but also sometimes use Swift and Java.

Do not forget to check for and report errors:

#include <stdio.h>
int main(void) {
    return puts("Hello, World!") < 0;
}

Do not add pointless if statements to functions that have the effect of returning a condition:

// if (condition)
//     return true;
// else
//     return false;
return condition;
1
gold badge
11
silver badges
41
bronze badges
223
Score
22
Posts
37
Posts %
56
Score
16
Posts
27
Posts %
39
Score
5
Posts
8
Posts %
34
Score
20
Posts
34
Posts %
12
Score
5
Posts
8
Posts %
9
Score
18
Posts
31
Posts %