c question
c question
- Subject: c question
- From: Michael <email@hidden>
- Date: Wed, 29 Mar 2006 16:05:34 -0800
In my quest to start at the basics, could someone tell me why this
code, in C, will not give the number of characters in the run log. tks
>>>>>>>
#include <stdio.h>
/* counts characters from key board */
int main () {
double i;
for ( i=0; getchar() != EOF; ++i)
;
printf("Number of characters = %.0f\n" , i);
return 0;
}
<<<<<<<<<<<
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden