View Full Version : c answers


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 [111] 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145

  1. integer and floating-point bit pattern
  2. Understanding ++
  3. Compilation with preprocessor macros defined with no value
  4. Binding problem - address already in use
  5. restrict
  6. Revue "Programmez !"
  7. Output undefined?
  8. Gap of two 0x00 between structs.....
  9. Circular Queue data structure ..
  10. bitwise not operator
  11. Multiple instance of process - memory conflicts
  12. Memory Managemant in C
  13. Monty Hall simulator: is there a better way to do this?
  14. Bit shifting for log of 2
  15. 8.8 notation....
  16. static lib
  17. Is it possible to perform CRC checks on Linked Lists?
  18. Differences between 'const char' and 'char'
  19. Integer to Binary
  20. Compile C Code With A CPP Compiler?
  21. Can the current file position indicator ever be greater the actual file size?
  22. RTL (Register Transfer Language) file
  23. pointers in structures?
  24. a compilation problem
  25. Question
  26. unions with long long ints and doubles?
  27. ANSI C Summary reposted
  28. for(;;) or while(1)?
  29. char *p = "longenough";
  30. New compiler?
  31. Segmentation fault
  32. what is a static function in C ?
  33. What does this warning means?
  34. "_pthread_deactivatex" problem under AIX
  35. Challenging BitManipulation puzzles...
  36. Programmign CPU registry related question.
  37. linking problem
  38. First C program
  39. same function name in different files
  40. operator precedance
  41. strcpy Question
  42. Wrapping, I am confused
  43. struct declaration and using free()
  44. Struct member access with macro
  45. array's access with address confusion
  46. Variable length array confusion
  47. zero-based array, in function confucsion
  48. logical OR obfuscation
  49. Did you know?
  50. Bus Error?
  51. wtf is this?
  52. About FAQ 1.14
  53. About FAQ 1.14
  54. Parameters and the Stack
  55. prints out an unsigned long in decimal
  56. test whether a number is a power of 2
  57. Learning C question
  58. sorry about "xyz"
  59. struct initializer { 0 }
  60. xyz
  61. Runtime type-safety (for linked lists)
  62. Encapsulation & Macro Functions
  63. Encapsulation & Macro Functions
  64. fslurp() critique
  65. what's the best way to time your code?
  66. extract records
  67. reading 32bits from a file
  68. Input problem
  69. Line input and implementation-defined behaviour
  70. How to kill all inherrit process by codeing in C
  71. fill space
  72. resolved: difference between memcpy and memmove
  73. New C programmer
  74. code review/comments please
  75. variable length arrays
  76. reading binary text
  77. strcpy and strcat problem
  78. array of pointer
  79. 'extern'ing variables
  80. displaying underlying representation of integers
  81. How to cast function pointer?
  82. Register Variables
  83. printf prototype UB
  84. struct timeVal
  85. Problem converting a huge Program into small ones
  86. reverse byte
  87. Arrays and Pointers to Arrays
  88. level of questions for experts only
  89. Cross-Platform Sockets in C?
  90. Learned something new today - thoughts?
  91. declaration of variables inside functions in C
  92. big number crunching in C
  93. returning (char **) values
  94. NULL: Is it guaranteed to evaluate 'not true'
  95. access to msaccess
  96. randomizing integers
  97. Structure
  98. some queries on freeing memory allocated using malloc
  99. gets, fgets Question
  100. compile problem
  101. Array at specific address
  102. opinion on enum
  103. String, String literal ? Could anyone explain to me ?
  104. Graph Implementation in C
  105. Hashtable implementation in C
  106. what's K&R2?
  107. [Q] Initialise a struct with variable length cahracter strings
  108. what'd the difference between STDIN and Keyboard buffer ?
  109. Call for Participation - JRobots Programming Challenge
  110. Void Pointer Question
  111. Looking for Mathematics and Date libraries for VC 6.0
  112. floating point error: overflow?
  113. floating point error: overflow?
  114. null and NULL: is there any difference?
  115. null and NULL: is there any difference?
  116. Re Books on developing portable C suites
  117. Re Books on developing portable C suites
  118. Worm storms
  119. Worm storms
  120. can't close a file??
  121. Question on switch
  122. Sign-extension?
  123. can't close a file??
  124. Question on switch
  125. Sign-extension?
  126. Needed help for strtof return value
  127. Unions
  128. what's wrong with this code?
  129. What does this error mean?
  130. No Experience
  131. memory alignment
  132. Compile problem
  133. strcmpi
  134. array <-> pointer Question
  135. JPG, PNG, GIF -> BMP
  136. memory alignment
  137. Operator Order
  138. Cyclic array problem
  139. gcc. mkstemp works but I can't write to the new files.
  140. Coding for the CPU cache?
  141. Two questions (see inside)
  142. Conio.h
  143. GUI ?
  144. C functions for JAR files
  145. 3-byte ints
  146. confusing macro
  147. array decay
  148. mfc / c++ directory creation problem
  149. can i access 'p' even after free(p);
  150. comparing numbers
  151. Memory Alloc/Dealloc query
  152. checking for stack overflow in recursive function
  153. hmmm, no C99
  154. Confusing itoa and atoi
  155. Your opinion
  156. vssvc.exe
  157. unsigned and signed 0
  158. fork + syslog blocking
  159. Program for compression
  160. My language is broken in oracle
  161. send message to ICQ and MSN Messenger
  162. The % puzzles me.....
  163. solving differential equation
  164. How to compare these variables by use operator 'AND'
  165. Linked-list's different insertions, help
  166. Linked list question
  167. program that prints its source code
  168. Q: please
  169. question
  170. doubt in USING POINTERS
  171. how to multiply two integers using bitwise operators
  172. # and ## operators
  173. Information you need to survive!
  174. binary tree?
  175. function explanation
  176. dll ?
  177. macro name from macro?
  178. feof usage
  179. const really constant?
  180. strdup
  181. is '\0' == 0
  182. dumb q moving to gcc - c99 mode
  183. converting char * in struct to a long value
  184. What use is void?
  185. Program structure
  186. Problem with array of structures
  187. Segfault with dynamically created 2-D array
  188. Accesing frames from a video capture card with C
  189. Help me in this program
  190. i need to create C program. Any one have Code
  191. File manipulation problem
  192. is it any good to use typedef ?
  193. what strspn and strpbrk stands for ?
  194. How to read string out of file with pointer?
  195. gmp.h questions
  196. incorporer des librairies avec la commande gcc
  197. Reading large files
  198. How to chek if USB port is mounted in linux?
  199. mulitiplication using bitwise operators
  200. how to convert 16-bit binary fraction to a float
  201. sprintf()
  202. structures and functions
  203. Test
  204. Set Cookie: ???
  205. What is "Pointer Alignment"
  206. losing my file pointer
  207. Bus Error
  208. msg to all
  209. about Pointer
  210. rewinding stdin
  211. arrays: negative index values
  212. missiles with parabolic paths for Magnant (C language).
  213. next quarter
  214. opinion wanted about global vars
  215. strcat problem again
  216. fopen causing malloc error - HELP!
  217. bit operation on leading 8 bits
  218. passing 2d array and realloc
  219. including libs by #pragma comment -> order of libs
  220. Iterate over a range of Array
  221. diff between #define & const
  222. interview question & answer required
  223. self deletable .exe
  224. diff between memmove & memecpy
  225. many question on C
  226. Enviroment variable on Linux _and_ Windows
  227. question, about implicit conversions
  228. unions: initialization and assignment
  229. (OT) floating-point numbers
  230. curiosity: structure assignments in C (and unions within structs)
  231. why overflow?
  232. union initializers idiosyncrasies
  233. no. of byte problem
  234. Students Fro Academic Freedom
  235. Macro argument bounds checking?
  236. allocate memory in function
  237. How to determine (in compile time) whether a compiler supports wide characters or not
  238. How to determine whether a compiler supports wide character or not
  239. Ways fopen() Failes
  240. parsing config file
  241. FAQ 2.6
  242. Naming convention for pointer-to-foo types
  243. Trying to read a c program
  244. Escape sequences and printing
  245. Contrived casting situation
  246. Nested for loop; curios behaviour?
  247. %f undefined behavior?
  248. ethic on Includes
  249. help me! -- K&R exercise 1-11
  250. Structure memory allocation
  251. file read -- increase the size of an array
  252. who delete mine?
  253. FILE undeclared - but its not, according to me.
  254. How can I know how many elements are there in multi-dimentional array?
  255. variables in format strings -- printf
  256. float to unsigned char array
  257. memory usage
  258. pass 2-dim array as param
  259. Why the code doesn't work the way I wanted ?
  260. free() an empty string ?
  261. Clearing an array
  262. C novice question...
  263. data structure for graph
  264. current time
  265. bind to a specific IP address
  266. "smart" indexing
  267. While statement problem
  268. String and null character
  269. For loop equivalent with the preprocessor
  270. return address of new memory
  271. Timestamp header
  272. compilation process
  273. A problem of SoftEng
  274. Plotting Graph in C
  275. %p and casting
  276. compound literals
  277. Why the code doesn't work ?
  278. library with abstract data types?
  279. Does any CVM [ C virtual Machine] exist?
  280. Structures and Variable Functions
  281. Designated struct initializers with Visual C++
  282. Why segmentation fault
  283. Is it OK to modify argv ???
  284. Strange command line args problem
  285. problem with generating random numbers !
  286. Pseudocode For Statement
  287. I need help with C for Linux
  288. inputting strings.
  289. Representation of integers
  290. Initialization without loop
  291. Syntax
  292. void arg to function
  293. Checking whether '\0' exists in the string
  294. style question
  295. x^y function?
  296. Rollover Issue
  297. Roman numerals to ints
  298. Textbook
  299. Trigraphs
  300. Are there any pre-defined variables in C?
  301. Preprocessor's question
  302. reading in command line argument
  303. strcat problem
  304. Need Help with C program
  305. alleged mis-form with strcat
  306. Has anybody used Doxygen on aolserver source?
  307. escape sequence
  308. Which style is better?
  309. C Code Editor Formatting Unix-Windows
  310. How to display the last n lines from a text file
  311. Having problems returning a char* from a function..need help...
  312. "The C Standard" in book form is here!
  313. 8 Bit CRC
  314. Associating strings with an enum (can I use a macro?)
  315. C flowcharting program
  316. Compiler bug - Postincrement & Preincrement operators
  317. why does this segfault??
  318. Dynamic string arrays?
  319. trap representation
  320. Converting Vbasic code to C code
  321. Maximum value for typedef'd type
  322. About sizeof
  323. array of strings?
  324. Is this well-defined?
  325. basic c i/o and EOF
  326. basic c i/o and EOF
  327. meaning of "1u"
  328. calloc
  329. multidimensional arrays as function parameter
  330. Please help! char* problems!
  331. About initializaion list
  332. regarding sites about C test questions
  333. bits
  334. Largest possible value of Integer Constants
  335. Anybody know how I would code an error statement when a user inputs an invalid input.
  336. How to change an icon in C?
  337. Order of parameter evaulation
  338. malloc a 2D array
  339. How to test for -0.0?
  340. When (32-bit) double precision isn't precise enough
  341. Technical Instruction Position
  342. replacing a string in a char pointer
  343. Problems with ASM/C
  344. initializing arrays of arrays
  345. What is the difference between MACRO and FUNCTION?
  346. how to implement a menu ?
  347. Basic Use of Malloc
  348. Declaration Problem.
  349. Why doesn't this function call save these registers?
  350. Question about disasembled function call on linux and
  351. Parse timestamp string
  352. Many Happy Returns
  353. basic #define usage
  354. Char to char*?
  355. Better Rand() Algorithim
  356. unwanted implicit casts
  357. C- Advice
  358. TAking the minimum of three values
  359. Looping logic
  360. Compile error: wrong machine type
  361. int *a, indicator fault
  362. Using strcat
  363. type casting question
  364. Human-readable storage for types (with no pointers)?
  365. need an advise: Graphic & Sound Programming
  366. Queues in C
  367. Sending a file to the printer, how?
  368. file locking
  369. array of void*
  370. Any preprocessing tool with {} insertion option?
  371. use select to detect input andtimeout
  372. select and timing
  373. tcp and fork
  374. question about database
  375. Comparing char* with integers and characters
  376. Keyboard Buffer
  377. How to compare one character of a string to a char?
  378. Precision Issue with STRTOF
  379. req: DES source code
  380. sizeof(struct dirent.d_ino)
  381. Linker
  382. Help needed to count lines between preprocessor directives
  383. Linker problem?
  384. derived
  385. GNU standard library sources
  386. How can I know it is a macro or actually is a function?
  387. Grade Program Question
  388. derivate
  389. bitwise absolute value
  390. How to create a directory?
  391. Used of using const char*
  392. very strange gcc output
  393. question about gprof
  394. question about gprof
  395. question about gprof
  396. is it possible to find out the caller of a method programmatically
  397. Structure and ASCII "Database"
  398. Copy Files to a network drive in Win2000
  399. malloc and calloc in Linux
  400. New OOP Framework using C
  401. structured lang?
  402. "As-if" rule question
  403. New OOP Framework using C
  404. structured lang?
  405. "As-if" rule question
  406. Array initialisation
  407. Array initialisation
  408. Fixed BCD code.
  409. free(); after return();?
  410. why doesn't this work?
  411. malloc experiments
  412. Fixed BCD code.
  413. Audio Recording and transfer using TCP/IP
  414. creating a variable from constant
  415. Function as macro parameter
  416. free(); after return();?
  417. why doesn't this work?
  418. malloc experiments
  419. Audio Recording and transfer using TCP/IP
  420. creating a variable from constant
  421. Function as macro parameter
  422. newb: inputting int-s
  423. How can I use malloc-ed memory inside a local function
  424. Greater than operator Vs Equal to operator : Which one is efficient?
  425. warning C4047:
  426. strtok trouble
  427. searching in a huge data pool?
  428. newb: inputting int-s
  429. How can I use malloc-ed memory inside a local function
  430. Greater than operator Vs Equal to operator : Which one is efficient?
  431. warning C4047:
  432. strtok trouble
  433. searching in a huge data pool?
  434. Code Review: Averaging program
  435. how to cantenate strings in C
  436. Constant macro parameters
  437. Flush stdin?
  438. need ring buffer source code
  439. ? about reading a comma delimited file
  440. treat array as a file
  441. decimal to BCD for long int
  442. Thank you to clc
  443. scanf/cin problem
  444. strings.h
  445. what is the significance
  446. what is the significance of this
  447. Variable argument number in functions
  448. Significance of 0;
  449. Is it all trivial?
  450. function addresses at build time...?
  451. difference(s) between char** argv and char* argv[]
  452. want a "here doc" equivalent in "c"
  453. copy to pointer memory ?
  454. Converting from char to integer value
  455. malloc experiments
  456. Is there a way to know the memory usage of a function's body?
  457. replace function
  458. assigning expession to variable
  459. Array: Pass by value... Possible?
  460. split number problem
  461. Extendible Hashing implementation
  462. Array Initialization
  463. Port data transfer
  464. Problems with Netifdev.h
  465. simple command line parser
  466. i need some C/C++ test intervie questions
  467. Multiple files
  468. Knowing size of a data type
  469. Allocation of memory to a pointer that points an array
  470. Prototypes
  471. C preprocessor function macros with empty aguments
  472. types, constants and casting
  473. Bit manipulation
  474. Recursion elimination
  475. scanf experiments
  476. looking for intro C text for experienced programmer
  477. Linux / how to check if subprocess is still alive
  478. Single dim array as a multidim array?
  479. How to avoid deadlock?
  480. Program for monitoring the serial port
  481. using char as boolean data type
  482. Declarations of structs, and arrays seem to be overlapping in memory..?!
  483. responsible license
  484. char **argv vs. char* argv[]
  485. Question about malloc, alignment, ...
  486. Zero elements of structure...
  487. Pointer-to-array - screwed up my mind ...
  488. Coding problem
  489. errors ???
  490. Using a math function in C.
  491. Multidimensional Arrays
  492. shell programming problem
  493. graphics functions under unix...
  494. IEEE floating point conversion to decimal and back for a C program
  495. Initialize a two-dimensional array
  496. question on FE_TOWARDZERO
  497. Recursing code problem
  498. C code to replace Fortran library
  499. How to make the program connect to next IP address without exiting program, if the current connection fail??
  500. Linked List does head node need to be allocated for?
  501. createing a *char with malloc but its giveing me too much space
  502. calling NAG from C
  503. TIFF/F
  504. calculate execution time
  505. what type of string returns are allowed
  506. Integer Program
  507. strtok problem
  508. char* and char[]
  509. [Q] Testing for malloc()
  510. does a cast become a null pointer ?
  511. bitwise operation...
  512. [Q] C Question
  513. allocating memory and reserving positions....
  514. [Comparative performance] str-functions vs. mem-functions
  515. Data structure
  516. Sending and reading big data by socket
  517. #defines
  518. power of a large int and a modular airthmetic problems.
  519. What is extern "C" ?
  520. Armed with Ora and K&R -- n00b to C
  521. how do i compile this simple program???
  522. Is memory allocation necessary for integer pointer
  523. structure member changing after a condition test
  524. trouble sqrt in gcc
  525. non-standard header files
  526. header files
  527. The output for localtime() is not correct.
  528. C printer commands
  529. Arrays and pointers
  530. A question about arrays and valid pointers
  531. A question about arrays and valid pointers
  532. fgets,fopen, fclose
  533. making literals be a stdint size
  534. Can't read entire record - fscanf (choked up)
  535. wrapper printf function
  536. A Question about floating point represanation
  537. a lot of errors test
  538. static variable in dynamic library?
  539. Calling Perl Script
  540. Packing data...
  541. core dump at _malloc_unlocked
  542. code using more memory than required
  543. Assigning string constant to char* without malloc
  544. Using printf to print a value multiple times
  545. return (i = 1, NULL)
  546. Introduction to Oflow
  547. How to open a new console and write something out write printf()
  548. malloc & free
  549. long long extended type in c89?