Mail Archives: djgpp/2002/05/04/23:15:11
Sorry if I'm a stupid, but I can't understand the
effects of the suggestions of Martin, Eli, && the first
suggestion of DJ. Bellow are the full codes that I made for
testing them. Maybe that people are writing and sending,
like I myself do sometimes, without testing the code
before?
#include <stdio.h>
int main () {
int a,b;
//...
while (1) {
scanf("%d",&a);
b = !!a;
printf("%d",a);
printf("%s","
");
} // Ends while.
//...
return 0;
}
#include <stdio.h>
int main () {
int a,b;
//...
while (1) {
scanf("%d",&a);
b = a != 0;
printf("%d",a);
printf("%s","
");
} // Ends while.
//...
return 0;
}
#include <stdio.h>
int main () {
int a,b;
//...
while (1) {
scanf("%d",&a);
b = a ? 1 : 0;
printf("%d",a);
printf("%s","
");
} // Ends while.
//...
return 0;
}
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
- Raw text -