why is this variable read-only2536 (8/28/2009 6:22:53 AM) comp.lang.c Please have a look at following snippet.. #include int main() { char* a="foo"; char * b="bar"; *a=*b; /* I know above line has undefined behaviour,because *a and *b are read only ,my qu... saurabhenjoys(12)
Statement on Schildt submitted to wikipedia today12661 (9/6/2009 7:06:25 PM) comp.lang.c == Proposal from Edward G. Nilges 7 Sep 2009 == The vandalism of Schildt continues. I propose that the following text be added to the discussion of the controversy. I shall also post this for discussion at com... spinoza1111(3250)
Zero overhead overflow checking10626 (9/7/2009 11:47:34 AM) comp.lang.c Abstract: Overflow checking is not done in C. This article proposes a solution to close this hole in the language that has almost no impact in the run time behavior. 1: The situation now --------------------... jacob24(973)
Initialization in a function declaration1334 (9/23/2009 10:16:20 AM) comp.lang.c Hello, I'm reading the C99 standard. I have a doubt about declarations, in particular function declarations. I know it is not possible to put an initializer inside a function declaration, but I cannot find t... pi00100100(8)
can a character be negative?8928 (9/29/2009 7:43:19 PM) comp.lang.c Hi folks, I have been wondering that can a char can be processed as a negative character means if I do something like.. char c= '-2'; printf("%c",c); Output should be -2 instead of 2 If the answer is no then... rahul.maveric(4)
Definition of language constructs1036 (10/6/2009 3:16:55 PM) comp.lang.c Hi, is there a formal definition of the high-level language constructs "expression" and "statement" or are the definitions different depending on the programming language? For example, in the ANSI-C standard, ... plfriko(499)
subroutine stack and C machine model12841 (10/12/2009 2:13:47 AM) comp.lang.c I'm looking and talking about a lot of C that is new to me this weekend. Does the abstract machine that is described in the standard have a subroutine stack? I've heard before that one can imagine things as a... merrill(193)
is 0xE-2 a valid expression?4752 (10/15/2009 7:35:56 AM) comp.lang.c Hello, one of my compiler [gcc (GCC) 3.4.5 (mingw-vista special r3)] barks at this program: #include int main(void) { printf("%X\n",0xE-2); return 0; } with 'invalid suffix "-2" on integer constant'. I... fgrieu(251)