Reply embedded...
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of The Devil
> Sent: Wednesday, May 03, 2006 1:57 AM
> To: C Paradise
> Subject: [C-Paradise] PROBLEM
>
> hi can ay one solve this problem please .
> tell me what does this program print & why ??
>
> #include<stdio.h>
> #include<conio.h>
Non-standard header used.
> void main()
Non-standard main() signature.
> {
> clrscr();
Non-standard function.
> struct value
> {
> int bit1 : 2;
> int bit2 : 2;
> };
> struct value v1={2,2};
The source value (2) cannot be represented for the target type (2-bit signed
integer); this results implementation-defined behavior.
> printf("%d %d",v1.bit1,v1.bit2);
Without the trailing newline, there might not be any output on some
implementation.
> getch();
Non-standard function.
> }
There is nothing to solve. Your code is implementation dependent.
Shyan
------------------------ Yahoo! Groups Sponsor --------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
>-----------------------------------------~-~>
CHECK THE ARCHIVE BEFORE POSTING!!!! Archive is available at
http://www.eScribe.com/software/C-Paradise/
>------------------------------------------_->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/C-Paradise/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/