why it doesn't work? #3943 (2/15/2010 2:47:06 PM) comp.lang.c Guys, Consider the following two files, files test.c and test1.c Contents of test1.c are as follows: --------------------------------------------------- int arr[] = { 0x100, 0x200 }; int main(void) { ... junky_fellow
using precedence and associativity to parse an expression649 (2/15/2010 1:09:04 PM) comp.lang.c Hi, As I read in previous threads in this newsgroup, that there is no precedence and associativity in C. Still, precedence and associativity rules may be used to parse an expression. Applying precedence/asso... junky_fellow
how to kill all child when parent exits241604 (12/3/2009 9:42:16 AM) comp.unix.programmer Guys,
I am writing an application where the parent (daemon) forks few
child processes.
My requirement is that when the parent process exits/killed/crashed,
all its child processes should also exit. Can ... junky_fellow
question related to static linking728 (9/7/2009 6:41:13 AM) comp.lang.c Guys, I am using a library that has some global variables. static const int libGlobal1; static const int libGlobal2; There are some functions in this library that use these global variables and some funct... junky_fellow
newbie c++ question #4535 (9/4/2009 6:54:59 AM) comp.lang.c++ guys, I have a code that has to be compiled with C and C++ compiler both. WIth C, I don't get any error but with C++, I am getting following error. error C2059: syntax error : '{' Here is the code: -------... junky_fellow
value of FALSE1241 (8/11/2009 4:56:00 PM) comp.lang.c Guys, Is it guaranteed that FALSE will always expand to value 0 and TRUE to some non zero value. if (TRUE) /* will this always be successful */ if (FALSE) /* will this always fail */ thanks...... junky_fellow
Can a void pointer be used to hold a function pointer653 (8/2/2009 6:00:25 AM) comp.lang.c Guys, Can a function pointer be converted to a void pointer and back again ? Will the final result compare equal to the original function pointer ? thanks.. ... junky_fellow
linking c++ code with c library7526 (7/11/2009 4:55:44 AM) comp.lang.c Guys, Can we link a c++ code with a library written in C ? Can both static and dynamic linking be done ? thanks. ... junky_fellow
what should be the output1336 (12/9/2008 8:17:31 PM) comp.lang.c Guys, What should the statement below print on a 32 bit system. printf("%x\n", (((long)1 - (unsigned long)3)) >>1); which is the correct output: 0xffffffff or 0x7fffffff ? thanks for any help... ... junky_fellow
complex pointer declaration928 (9/19/2007 1:21:30 PM) comp.lang.c Guys, I am sorry for asking so many questions. I need to declare a pointer to an array of pointer to functions where each function takes void as an argument and returns int. I could declare an array of ... junky_fellow(377)
directio write on linux 2.4.6230 (9/24/2007 10:37:12 AM) comp.unix.programmer guys, I want to bypass the file system buffer. For that I open the file in O_DIRECT mode. The open is successful. However, when I do a write of 512 bytes (block size), I am getting EINVAL (errno=22). Does... junky_fellow(377)
return from main #24031 (11/12/2007 10:44:07 AM) comp.lang.c Guys, Can I return 0, from main() ? Is this equivalent to exit(EXIT_SUCCESS) ? thanks for any help... ... junky_fellow(377)
linked list question #35533 (1/22/2008 7:19:46 AM) comp.lang.c Hi, Is there any efficient way of finding the intesection point of two singly linked lists ? I mean to say that, there are two singly linked lists and they meet at some point. I want to find out the addres ... junky_fellow(377)
finding sizeof structure using gdb4187 (1/28/2008 9:05:25 AM) comp.unix.programmer Guys, Is there any way by which I can find out the size of a particular structure using GDB ?Also, is there a way, I can find out the offset of a member inside a structure ? Many thanks for any help.. ... junky_fellow(377)
question realted to void *2830 (9/16/2008 6:54:03 PM) comp.lang.c Guys, Consider a function func(void **var) { /* In function I need to typecast the variable var as (int **) I mean to say, I need to access var as (int **) } My question is what is the better option,... junky_fellow(377)
newbie c++ question #4535 (9/4/2009 6:54:59 AM) comp.lang.c++ guys, I have a code that has to be compiled with C and C++ compiler both. WIth C, I don't get any error but with C++, I am getting following error. error C2059: syntax error : '{' Here is the code: -------... junky_fellow(377)
question related to static linking728 (9/7/2009 6:41:13 AM) comp.lang.c Guys, I am using a library that has some global variables. static const int libGlobal1; static const int libGlobal2; There are some functions in this library that use these global variables and some funct... junky_fellow(377)
why it doesn't work? #3943 (2/15/2010 2:47:06 PM) comp.lang.c Guys, Consider the following two files, files test.c and test1.c Contents of test1.c are as follows: --------------------------------------------------- int arr[] = { 0x100, 0x200 }; int main(void) { ... junky_fellow(377)