Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for Lover of Structureâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Comment | Post #289488 |
Since you admitted to it, I should do the same: Knowing that you're active here, I knew you'd see this anyway, plus it's better to have this question not have a dependency on our lovely sister site ;-) (more) |
— | 9 months ago |
Edit | Post #289488 |
Post edited: formatting (very minor) |
— | 9 months ago |
Edit | Post #289488 |
Post edited: added one more example |
— | 9 months ago |
Comment | Post #289488 |
I made some edits; feel free to have a look. (more) |
— | 9 months ago |
Edit | Post #289488 |
Post edited: made question more specific in two aspects |
— | 9 months ago |
Edit | Post #289488 | Initial revision | — | 9 months ago |
Question | — |
Why does calloc accept 2 arguments, and with what arguments should one call it? According to the standard (C17 draft, 7.22.3.2) The function `calloc` > `void calloc(sizet nmemb, sizet size);` "allocates space for an array of `nmemb` objects, each of whose size is `size` [and] initialize[s] [...] all bits [to] zero". Like `malloc`, it returns a `void ` pointer to the alloc... (more) |
— | 9 months ago |
Comment | Post #289415 |
Could you give an example of a good "higher-integrity compiler"? (more) |
— | 9 months ago |
Edit | Post #288916 |
Post edited: disambiguation (minor) of wording |
— | 10 months ago |
Edit | Post #288928 |
Post edited: minor typos |
— | 10 months ago |
Edit | Post #288916 |
Post edited: |
— | 10 months ago |
Suggested Edit | Post #288928 |
Suggested edit: minor typos (more) |
helpful | 10 months ago |
Edit | Post #288916 |
Post edited: |
— | 10 months ago |
Comment | Post #288916 |
I have seen relatively few functions in industrial production code marked as `static`, and it's the same for instructional materials on C. But I can't quantitatively prove it. (more) |
— | 10 months ago |
Edit | Post #288916 |
Post edited: speculative answer added |
— | 10 months ago |
Edit | Post #288916 |
Post edited: |
— | 10 months ago |
Edit | Post #288916 | Initial revision | — | 10 months ago |
Question | — |
What are disadvantages of static functions (ie functions with internal linkage) in C? Functions in C have external linkage by default. In other words, the storage class specifier `extern` is applied to functions by default, with the effect that they are visible to all translation units. The storage class specifier `static` gives functions internal linkage and restricts visibility t... (more) |
— | 10 months ago |