c 4069

  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. How do I determine the size of my array in C?
  20. Unit Testing C Code
  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. Can code that is valid in both C and C++ produce different behavior when compiled in each language?
  31. Which is faster: while(1) or while(2)?
  32. What should main() return in C and C++?
  33. Why isn't sizeof for a struct equal to the sum of sizeof of each member?
  34. How do I achieve the theoretical maximum of 4 FLOPs per cycle?
  35. Using boolean values in C
  36. How to detect integer overflow?
  37. “static const” vs “#define” vs “enum”
  38. How do you pass a function as a parameter in C?
  39. Why does sizeof(x++) not increment x?
  40. What is size_t in C?
  41. How to determine CPU and memory consumption from inside a process?
  42. What are the barriers to understanding pointers and what can be done to overcome them?
  43. How to generate a random number in C?
  44. Difference between static and shared libraries?
  45. Why is “while ( !feof (file) )” always wrong?
  46. What is the difference between char s[] and char *s?
  47. unsigned int vs. size_t
  48. How can I get the list of files in a directory using C or C++?
  49. What is a segmentation fault?
  50. Undefined, unspecified and implementation-defined behavior