celtschk
A quiet enigma. We don't know anything about celtschk yet.
Posts
C does have references, but it does not have pass by reference. A reference is simply an expression that references an object (object here is meant in the general sense, not in the OO sense; for e...
posted 1y ago by celtschk
I've just started playing around with pygame and have written a small game in it, of which I'd like a review. Note that I'm not only a complete beginner in pygame, but I also have very little exper...
1 answer · posted 1y ago by celtschk · last activity 1y ago by Peter Taylor
Your function returns a pointer to a local non-static variable. Such a variable exists only during execution of the function and is removed on return. This means you are left with a so-called dangl...
posted 1y ago by celtschk
I've just dived into pygame and written a little game in it, of which I'd like a review (it's my first try of pygame). However I'm not sure if it is a good fit for the site, and if so, how exactly ...
2 answers · posted 1y ago by celtschk · last activity 1y ago by Peter Taylor
Not only does the C language not guarantee it, it also will fail on actual compilers, as soon as you enable optimisation (which you'll generally want to do because you want your code run fast, afte...
posted 1y ago by celtschk
While I agree with Dirk Herrmann that basename is the right tool for the job, I think it is still worthwhile to know how to do it with grep, because you might one day encounter a sufficiently simil...
posted 10mo ago by celtschk
Besides the possible issues that Lundin told you, there is also the possibility that the current directory of the program is not what you think it is (note that the current directory is not necessa...
posted 1y ago by celtschk
I've written the following code implementing a state machine in Python, and I'd like some feedback on it. The basic idea is that each state has a set of corresponding actions that trigger a state ...
2 answers · posted 1y ago by celtschk · last activity 12mo ago by Nick Alexeev
The standard does not talk about object files and/or linking, but it does talk about translation units. In typical compilers, a single translation unit translates into a single object file. Obviou...
posted 1y ago by celtschk
On this answer I just reacted with “works for me” with comment, but then retracted it because of what finally turned out to be a mistake on my end, and deleted also the comment (and thus the commen...
1 answer · posted 1y ago by celtschk · last activity 11mo ago by Monica Cellio
Reputation | 676 | |
Number of top-level posts | 7 | |
Number of answers | 10 | |
Sum of received votes (up minus down) | 85 | |
Number of edits made | 2 |
Earned Abilities
Statistics
Posts | ||
---|---|---|
Count | 17 | |
Questions | 7 | |
Answers | 10 | |
Articles | 0 |
Votes cast | ||
---|---|---|
Count | 90 |
Flags raised | ||
---|---|---|
Count | 0 |