Description:
Discussion about C.
|
|
|
ohmigod I forgot to google for time
|
| |
I have an unusual posting style where I tend to waste the first paragraph of a post. Newsreading requires a news writer, and any writer worth his salt does not approach his topic too quickly. So it is that I might ask for the answer before I have the subject or keywords that might power an internet browser search with some degree of... more »
|
|
I love relational operators so much
|
| |
C's handling of 'if' leads to a lot of room for obfuscation. All you have to do is replace ';' with '|' for compound expressions and add parentheses as neccessary. if (x) y; else z; becomes ((x)&&(y)) ...for compounds, if (x) y;z;a;b; else c;d;e;f; becomes ((x) && ((y)|(z)|(a)|(b)) ...C is so much fun to obfuscate. Gotta love ISO 9899.... more »
|
|
Stats for comp.lang.c (last 7 days)
|
| |
============================== ============================== ================ Analysis of posts to comp.lang.c ============================== ============================== ================ (stats compiled with a script by Garry Knight) Total posts considered: 973 over 7 days... more »
|
|
&& Suggestion
|
| |
Hi all, Actually there is quite a lot of spam here after all. How about we prefix all our messages with some symbol or other we can all agree to use as I've done here, so meaningful, on-topic posts can be more readily sorted from the rubbish?
|
|
Macro preprocessing
|
| |
Hi All, I have a following kind of situation. ...int main(){ ...int a,a_b; a = r(b); ...where I need to construct a symbol ab, at the place where code is executed. A g++ -E test.c, however insert a space between a and b. What could be possible solution for this?
|
|
Linked list question
|
| |
What's the difference between using some like struct node* current as a temporary variable in the following function... int Length(struct node* head) { struct node* current = head; int count = 0; while (current != NULL) { count++; current = current->next; } return count; ...As opposed to not using one in the same function....... more »
|
|
Is thi me or GCC
|
| |
I've just started to get a strange warning from GCC. Can you check my code for me and check that this is GCC being silly - and so it should be reported as a bug - not me missing something. Here's a cut-down example: ...int main(void) { char *s; char *a = "this is + some stuff"; for(s=a; s && *s; s && ++s) {... more »
|
|
|