Hi,
this won't work in windows->Visual Studio environment. which platform you are working on?
regards,
Kumaran.


"Senthil." <[EMAIL PROTECTED]> wrote:
 
Hi friends plz help me to solve this ....
how the below program works for char and int without being declared with types inside the structure but it does not work for float (ie %f program terminates!!)  also this is not allowed outside structure why ??
 
#include<stdio.h>
#include<conio.h>
struct a
{
    s;
    r;
}b;
void main()
{
  clrscr();
  b.s= '1' ;
  b.r=2;
  printf("%c",b.s);
  printf("%d",b.r);
  getch();
}
 
pls send reply soon...
 
with regards,
senthil


Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn more.

To unsubscribe : [EMAIL PROTECTED]




__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to