Mail Archives: djgpp/1998/01/21/18:40:42
At 10:55 1/21/1998 +0200, S. M. Halloran wrote:
>You believe right. The program could be revised to lose the
>variables and not put so much of a workload on the stack :)
>
>
>#include<stdio.h>
>
>int main(void)
>{
> printf("Size of integer: %d\n", sizeof(int);
> printf("Size of char: %d\n", sizeof(char);
> printf("Size of float: %d\n", sizeof(float);
> return (0);
>}
It could also be revised to include the close-parenthesis which a function
call needs. Something about `parse error...' :)
This time for sure.
#include <stdio.h>
int main(void)
{
printf("Size of integer: %d\n", sizeof(int));
printf("Size of char: %d\n", sizeof(char));
printf("Size of float: %d\n", sizeof(float));
return (0);
}
Nate Eldredge
eldredge AT ap DOT net
- Raw text -