Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
For questions asking for tips on golfing in a specific language, doing well in certain challenge tag, or improving a particular piece of code.
29
votes
Tips for golfing in C++
The ternary conditional operator ?: can often be used as a stand in for simple if--else statements at considerable savings.
It is of special value in that it can be used to select alternate lvalues …
40
votes
Tips for golfing in C
The ternary conditional operator ?: can often be used as a stand in for simple if--else statements at considerable savings.
Unlike the c++ equivalent the operator does not formally yield an lvalue, b …
25
votes
Tips for golfing in C
Any part of your code that repeats several times is a candidate for replacement with the pre-processor.
#define R return
is a very common use case if you code involves more than a couple of functio …