4. What does the following program do?
/* ex02-04.c */
#include <stdio.h>
int main(void)
{
int ctr;
for( ctr=65; ctr<91; ctr++ )
printf("%c", ctr);
return 0;
}
/* end of program */
(Assuming we're using ASCII)
It prints the capital letters from A to Z to the standard output. It then exits normally.
No comments:
Post a Comment