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 | |
|
|
Yahoo! Groups Links
- To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4945
Please do not reply to this message via email. (more info)
- To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
