2017
Jul
4
awarded  Yearling
Jun
9
awarded  Guru
2016
Feb
4
awarded  Nice Answer
2015
Dec
1
awarded  Enlightened
Dec
1
awarded  Nice Answer
Nov
30
awarded  Yearling
Jul
7
awarded  Pundit
Mar
16
awarded  Good Answer
Feb
11
awarded  Nice Answer
2014
Nov
29
comment Why do we have to tell printf() the type of data in C?
The compiler knows that x is an integer, but printf does not.
Sep
5
awarded  Yearling
Jul
26
comment Why do binary files load quicker than alphanumeric text files?
You don't need a switch. Just do '0' + x. But your point still stands.
Feb
15
comment How do I maintain consistency between hard-coded values in different files?
If it's not needed at runtime, then you could create a header file with them as constants (#define).
Feb
6
comment Does this justify goto statements?
Why do you even use broken in your first example at all? Just use break on the inner loop. Also, if you absolutely must use broken, why declare it outside the loops? Just declare it inside the i loop. As for the while loop, please don't use that. I honestly think it manages to be even less readable than the goto version.
Jan
12
comment What makes a language Turing-complete?
For imperative languages, are simple variables enough? I was under the impression that some kind of collection (e.g. arrays or linked lists) would be necessary.
2013
Dec
31
comment How do you read this line of code?
"C makes a difference between multidimensional and jagged arrays." Could you clarify this sentence? Because I've seen this distinction in languages such as C#, but never in C. All sources I've seen suggest that C only has arrays of arrays (jagged arrays).
Sep
29
awarded  Citizen Patrol
Sep
5
awarded  Yearling
Aug
20
comment Do sigils make source code easier to read?
About return = "something";, C# has "contextual keywords", which is also an option worth checking out when designing languages.
Aug
18
comment When is it ok to use a Global variable
@aqua Multithreaded applications are where global variables can be most damaging. Everyone hates complex locking logic.