Tag: c

2657 Improve INSERT-per-second performance of SQLite? 2009-11-10T22:16:43.493

2154 How do you set, clear, and toggle a single bit? 2008-09-07T00:42:17.500

2137 Do I cast the result of malloc? 2009-03-03T10:13:02.940

2051 Why are elementwise additions much faster in separate loops than in a combined loop? 2011-12-17T20:40:52.030

1910 What is the difference between #include <filename> and #include "filename"? 2008-08-22T01:40:06.993

1673 What does the C ??!??! operator do? 2011-10-19T16:56:59.617

1528 What is ":-!!" in C code? 2012-02-10T14:50:08.910

1469 With arrays, why is it the case that a[5] == 5[a]? 2008-12-19T17:01:33.177

1319 Compiling an application for use in highly radioactive environments 2016-04-24T19:09:40.713

1294 What is the effect of extern "C" in C++? 2009-06-25T02:10:07.837

1070 What is the difference between const int*, const int * const, and int const *? 2009-07-17T13:28:09.233

1045 How do function pointers in C work? 2009-05-08T15:49:17.003

939 Why does the C preprocessor interpret the word "linux" as the constant "1"? 2013-10-06T16:09:48.263

932 Obfuscated C Code Contest 2006. Please explain sykes2.c 2013-03-13T18:22:49.453

913 What does "static" mean in C? 2009-02-21T06:47:52.017

852 How do I use extern to share variables between source files? 2009-09-16T14:08:40.663

829 How to initialize all members of an array to the same value? 2008-10-14T13:13:40.783

765 How do I determine the size of my array in C? 2008-09-01T06:49:22.723

753 Unit Testing C Code 2008-09-15T19:12:00.383

751 What is the difference between a definition and a declaration? 2009-09-11T12:27:12.883

732 Why are these constructs using pre- and post-increment undefined behavior? 2009-06-04T09:17:52.267

698 What is the strict aliasing rule? 2008-09-19T01:30:27.830

690 What is the difference between ++i and i++? 2008-08-24T05:19:19.713

683 Why use apparently meaningless do-while and if-else statements in macros? 2008-09-30T17:36:24.213

670 Difference between malloc and calloc? 2009-10-08T15:04:33.983

670 typedef struct vs struct definitions 2009-11-04T17:21:57.857

661 Divide a number by 3 without using *, /, +, -, % operators 2012-07-27T19:34:31.463

612 Can code that is valid in both C and C++ produce different behavior when compiled in each language? 2012-10-14T23:54:26.223

611 Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell 2011-08-06T02:34:14.747

587 What should main() return in C and C++? 2008-10-15T12:13:48.327

579 Why isn't sizeof for a struct equal to the sum of sizeof of each member? 2008-09-23T04:24:47.820

570 Using boolean values in C 2009-12-17T12:46:49.130

567 How do I achieve the theoretical maximum of 4 FLOPs per cycle? 2011-12-05T17:54:56.207

566 Which is faster: while(1) or while(2)? 2014-07-20T07:32:49.683

537 How to detect integer overflow? 2008-10-13T22:53:21.407

503 How do you pass a function as a parameter in C? 2008-08-13T02:16:32.520

503 How to determine CPU and memory consumption from inside a process? 2008-09-15T14:04:43.727

503 What is size_t in C? 2010-03-31T05:51:55.800

500 "static const" vs "#define" vs "enum" 2009-11-04T14:19:24.037

484 Why is “while ( !feof (file) )” always wrong? 2011-03-25T11:42:33.207

480 Difference between static and shared libraries? 2010-04-15T22:08:01.347

478 Why does sizeof(x++) not increment x? 2011-11-22T11:07:16.623

474 How to generate a random int in C? 2009-05-04T22:07:59.787

468 How can I get the list of files in a directory using C or C++? 2009-03-04T19:35:58.303

466 What is a segmentation fault? 2010-02-27T09:23:14.947

457 What is the difference between char s[] and char *s? 2009-11-09T22:34:21.797

455 What REALLY happens when you don't free after malloc? 2009-03-17T15:29:09.207

455 Undefined, unspecified and implementation-defined behavior 2010-03-07T21:10:30.717

452 Why does printf not flush after the call unless a newline is in the format string? 2009-11-11T16:22:39.240

449 unsigned int vs. size_t 2008-09-25T07:00:03.843

443 What are the barriers to understanding pointers and what can be done to overcome them? 2008-08-08T06:17:51.543

437 Can you write object-oriented code in C? 2008-12-09T04:02:40.557

430 C pointer to array/array of pointers disambiguation 2009-05-13T18:35:12.650

423 What is a "static" function? 2009-02-17T18:26:02.043

421 What does "dereferencing" a pointer mean? 2011-02-10T09:16:22.333

420 When is assembly faster than C? 2009-02-23T13:03:26.950

418 How many levels of pointers can we have? 2012-04-10T10:34:17.970

414 Calling C/C++ from Python? 2008-09-28T05:34:20.177

412 What is an unsigned char? 2008-09-16T18:05:18.557

410 Programmatically find the number of cores on a machine 2008-09-29T19:51:45.580

410 Why do all the C files written by my lecturer start with a #? 2017-08-11T07:17:56.533

406 What is the argument for printf that formats a long? 2008-09-01T22:45:25.903

402 What is Linux’s native GUI API? 2012-10-03T21:23:50.997

401 Is there a performance difference between i++ and ++i in C? 2008-08-24T06:48:23.243

400 Is It Possible to NSLog C Structs (Like CGRect or CGPoint)? 2009-02-15T02:28:30.300

394 How do I list the symbols in a .so file 2008-08-29T16:57:47.920

394 Where do I find the current C or C++ standard documents? 2008-09-17T10:04:04.663

394 Which is better option to use for dividing an integer number by 2? 2012-05-21T07:54:36.977

394 Why does GCC generate 15-20% faster code if I optimize for size instead of speed? 2013-10-19T20:36:16.310

389 Preventing console window from closing on Visual Studio C/C++ Console application 2009-11-21T15:58:35.750

383 Why does a function with no parameters (compared to the actual function definition) compile? 2012-12-19T10:48:39.357

382 Correct format specifier for double in printf 2010-11-24T06:45:28.847

380 Typedef function pointer? 2010-11-28T04:50:25.267

379 How to allocate aligned memory only using the standard library? 2008-10-22T23:23:41.717

378 How to initialize a struct in accordance with C programming language standards 2008-12-01T13:13:17.223

374 Fastest sort of fixed length 6 int array 2010-05-07T07:24:45.013

373 Why does ENOENT mean "No such file or directory"? 2013-11-11T09:25:40.360

372 How dangerous is it to compare floating point values? 2012-04-26T13:41:12.947

370 Concept behind these four lines of tricky C code 2013-08-01T11:16:08.140

367 Fastest way to determine if an integer is between two integers (inclusive) with known sets of values 2013-06-13T19:21:42.930

366 Difference between a Structure and a Union 2008-12-06T17:56:45.710

365 Is Fortran easier to optimize than C for heavy calculations? 2008-09-28T16:02:52.707

355 Is there a printf converter to print in binary format? 2008-09-21T20:04:58.387

355 Static linking vs dynamic linking 2010-01-03T00:06:12.597

354 What's the best way to check if a file exists in C? (cross platform) 2008-10-23T14:57:24.967

345 Is there a standard sign function (signum, sgn) in C/C++? 2009-12-14T22:27:15.443

343 Why is volatile needed in C? 2008-10-29T08:36:39.063

343 Fastest way to check if a file exist using standard C++/C++11/C? 2012-10-08T01:10:11.103

342 What are .a and .so files? 2012-03-21T16:53:08.520

340 What is the difference between float and double? 2010-03-05T12:48:32.230

338 Why are hexadecimal numbers prefixed with 0x? 2010-04-19T20:33:01.380

337 Why is the use of alloca() not considered good practice? 2009-06-19T16:24:16.517

335 How to write iOS app purely in C 2012-04-23T23:48:25.200

334 Why should we typedef a struct so often in C? 2008-10-31T07:14:03.240

328 How do I print the full value of a long string in gdb? 2008-10-24T12:36:01.353

325 How can I get a file's size in C? 2008-10-26T20:54:57.593

324 Printing 1 to 1000 without loop or conditionals 2010-12-31T06:55:16.240

320 Debug vs Release in CMake 2011-10-11T10:26:54.997

318 What is the printf format specifier for bool? 2013-06-25T20:50:17.033