Skip to main content
CPlus's user avatar
CPlus's user avatar
CPlus's user avatar
CPlus
  • Member for 2 years, 6 months
  • Last seen this week
  • United States

Stats

6,897
reputation
183k
reached
31
answers
36
questions
Loading…

About

profile for CPlus on Stack Exchange, a network of free, community-driven Q&A sitesprofile for CPlus at Software Engineering Stack Exchange, Q&A for professionals, academics, and students working within the systems development life cycle
profile for CPlus at Programming Language Design and Implementation Stack Exchange, Q&A for designers and implementers of computer programming languagesprofile for CPlus at Stack Overflow, Q&A for professional and enthusiast programmers

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
15
silver badges
47
bronze badges
245
Score
23
Posts
34
Posts %
64
Score
20
Posts
30
Posts %
39
Score
5
Posts
7
Posts %
35
Score
21
Posts
31
Posts %
31
Score
7
Posts
10
Posts %
9
Score
20
Posts
30
Posts %

Top posts

View all questions and answers