Hi friends plz help me to solve these....


int main()
{
       int i, j;
       scanf("%d %d" +scanf("%d %d", &i, &j));
       printf("%d %d", i, j);
return 0;
}

how the scanf works ? why it does not work without '+' ? what does '+' does there ?  what does it mean?

 

 

how the below program works for char and int without being declared with types inside the structure (ie it prints 1 and 2) i dont get any error or warning messages though all options are turned on. but it does not work for float (ie %f program terminates!!)  also this is not allowed outside structure why ??  i use turboc ver 3.01.
 
#include<stdio.h>
struct a
{
    s;
    r;
}b;
int main()
{
  b.s= '1' ;
  b.r=2;
  printf("\n%c",b.s);
  printf("\n%d",b.r);
  retrun 0;
}
 
pls send reply soon...
 
with regards,
senthil


Do you Yahoo!?
Send a seasonal email greeting and help others. Do good.

To unsubscribe : [EMAIL PROTECTED]




Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to