c 4,392

  1. Improve INSERT-per-second performance of SQLite?
  2. Do I cast the result of malloc?
  3. How do you set, clear, and toggle a single bit?


  4. Why are elementwise additions much faster in separate loops than in a combined loop?
  5. What is the difference between #include <filename> and #include “filename”?
  6. What does the C ??!??! operator do?
  7. What is “:-!!” in C code?
  8. With arrays, why is it the case that a[5] == 5[a]?
  9. Compiling an application for use in highly radioactive environments
  10. What is the effect of extern “C” in C++?
  11. How do function pointers in C work?
  12. What is the difference between const int*, const int * const, and int const *?
  13. Obfuscated C Code Contest 2006. Please explain sykes2.c
  14. Why does the C preprocessor interpret the word “linux” as the constant “1”?
  15. What does “static” mean in C?
  16. How do I use extern to share variables between source files?
  17. How to initialize all members of an array to the same value?
  18. Why are these constructs (using ++) undefined behavior in C?
  19. Unit Testing C Code
  20. How do I determine the size of my array in C?
  21. What is the difference between a definition and a declaration?
  22. Divide a number by 3 without using *, /, +, -, % operators
  23. What is the strict aliasing rule?
  24. Why use apparently meaningless do-while and if-else statements in macros?
  25. What is the difference between ++i and i++?
  26. Difference between malloc and calloc?
  27. typedef struct vs struct definitions
  28. Can code that is valid in both C and C++ produce different behavior when compiled in each language?
  29. Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell
  30. Which is faster: while(1) or while(2)?
  31. What should main() return in C and C++?
  32. Why isn't sizeof for a struct equal to the sum of sizeof of each member?
  33. How do I achieve the theoretical maximum of 4 FLOPs per cycle?
  34. Using boolean values in C
  35. How to detect integer overflow?
  36. “static const” vs “#define” vs “enum”
  37. How do you pass a function as a parameter in C?
  38. Why does sizeof(x++) not increment x?
  39. What is size_t in C?
  40. How to determine CPU and memory consumption from inside a process?
  41. What are the barriers to understanding pointers and what can be done to overcome them?
  42. How to generate a random number in C?
  43. Difference between static and shared libraries?
  44. Why is “while ( !feof (file) )” always wrong?
  45. What is the difference between char s[] and char *s?
  46. unsigned int vs. size_t
  47. How can I get the list of files in a directory using C or C++?
  48. What is a segmentation fault?
  49. Undefined, unspecified and implementation-defined behavior
  50. What REALLY happens when you don't free after malloc?