@Souravsain : Is there any serious problem in this. Anyone can just add a [C++] in the subject and uninterested people can make filters in gmail :)
-------------------------------------------------- Rohit Saraf Second Year Undergraduate, Dept. of Computer Science and Engineering IIT Bombay http://www.cse.iitb.ac.in/~rohitfeb14 On Sun, Jun 13, 2010 at 6:35 PM, souravsain <souravs...@gmail.com> wrote: > @divya > > Lets keep discussions in t his group limited to Algos and problems > neutral to any language. > > Request you to post these C++ / C language specific questions to those > language specific groups. This will not only help this group remain > confined to its core purpose but will help you get better insights to > ur problem by language specific geeks there. For C++ I would recommend > you to try the group > http://groups.google.co.in/group/comp.lang.c++.moderated/topics?hl=en. > > Regards, > Sourav > > On Jun 13, 2:29 pm, divya <sweetdivya....@gmail.com> wrote: > > tell the o/p of following with explanations > > > > 1. #include<stdio.h> > > int main() > > { > > struct value > > { > > int bit1:1; > > int bit3:4; > > int bit4:4; > > > > }bit; > > > > printf("%d\n",sizeof(bit)); > > return 0; > > > > } > > > > 2. > > #include<stdio.h> > > int main() > > { > > struct value > > { > > int bit1: 1; > > int bit3: 4; > > int bit4: 4;} bit={1,2,2}; > > > > printf("%d %d %d\n",bit.bit1,bit.bit3,bit.bit4); > > return 0; > > > > } > > > > 3 can bit field be used in union?? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.