COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register
txr (1104) 4 Articles, 1100 Replies, 1104 Points
Stats Updating... 12/12/2013 4:46:11 PM

Since 4/26/2012 11:10:24 PM, txr has written 4 articles and participated in 1100 conversations.
txr signature:
txr

txr's articles:
 Items(4) /1 The Semantics of 'volatile' 78 47 (6/1/2009 11:43:11 PM) comp.lang.cThe Semantics of 'volatile' =========================== I've been meaning to get to this for a while, finally there's a suitable chunk of free time available to do so. To explain the semantics of 'volatile', ...Tim Separating an array in O(n) time and O(1) space 4 65 (12/2/2004 6:36:27 PM) comp.programmingThe question was asked in an earlier article about separating a sorted array into unique values and duplicate values in O(n) time and O(1) space (which implies what is called an "in place" algorithm). I'd menti...Tim Another ANSI C question about 'volatile' 8 39 (8/15/2004 5:47:57 PM) comp.lang.cHere's another question related to 'volatile'. Consider the following: int x; void foo(){ int y; y = (volatile int) x; ... further computations involving y (but no assig...Tim ANSI C question about 'volatile' 9 46 (8/13/2004 2:55:43 AM) comp.lang.cI have a question about what ANSI C allows/requires in a particular context related to 'volatile'. Consider the following: volatile int x; int x_remainder_arg( int y ){ return x % y; ...Tim

txr's replies:
 Items(352) /36 Next >> Last >| beginner with programming, how to learn to debug and few C general questions 96 67 (6/9/2009 10:17:20 PM) comp.lang.cHi, I am first an accountant and decided to take on programming a few years ago... I have been first studying simple algorithms... Now I have decided to first learn C (i'll give it 600 effective hours - so bt...bpascal1231 (133) incomplete types 12 37 (6/12/2009 9:14:06 AM) comp.lang.cSSdtIHdvbmRlcmluZyBpZiBpdCBpcyBPSyB0byBkZWNsYXJlIGluY29tcGxldGUgdHlwZSBsaWtl IHRoaXM6DQoNCi8qIGZvby5oICovDQojaWZuZGVmIEZPT19IDQojZGVmaW5lIEZPT19IDQoNCnR5 cGVkZWYgc3RydWN0IGZvbyBmb29fdDsNCg0KI2VuZGlmDQoNCi8qIGZv...mark_cruzNOTFORSPAM (182) padding? 47 52 (6/13/2009 8:07:32 AM) comp.unix.programmerI looked in the index of K&R and couldn't find anything on padding. Could someone please explain what padding is in C programming and illustrate it with some code. I heard it is often used in constructing netwo...netrek (202) Global restricted function pointer 22 43 (6/16/2009 8:07:29 AM) comp.lang.cHow do I declare a global restricted pointer to a function? I have a vanilla global void (*fp)(); But if I try void (*restrict fp)(); it's an "invalid use of restrict" (GCC with -std=c99 -pedantic). What's...jshamalini (7) possibly undefined behavior 48 46 (6/18/2009 1:37:09 AM) comp.lang.cHello does this code invoke UB? int func(int i) { return (i * i); } int main(void) { int i = 2; i = func(i); return 0; } GCC with "-pedantic -W -Wall -Wextra" says nothing though. -- Mark...mark_cruzNOTFORSPAM (182) return type of a function 11 39 (6/22/2009 11:56:21 PM) comp.lang.cWhat should be the return type of a function returning an array of pointers to a structure? ... Books #3 1 50 (6/23/2009 1:20:15 PM) comp.lang.cWhich book can you recommend to master C++ at an intermediate level? ... Book #3 1 71 (6/23/2009 1:23:14 PM) comp.lang.cWhich book can you recommend to master C at an intermediate level? ... in which form real and integer values are saved in memory 29 36 (7/7/2009 4:07:06 PM) comp.lang.cin memory characters are stored in form of ascii values my question is that Is it also true for integer value if yes how?? also true for real (float and double) values?? ...manish.comp05 (49) "Interleave" permutation algorithm? 49 52 (8/26/2009 12:25:19 AM) comp.programmingHi. Is there a fast algorithm to compute the "interleave" and "deinterleave" permutation of any even-number-length data in-place? Like this: 0123456789 becomes 0516273849 (interleave) and 0516273849 becomes...mike4ty4 (440)