delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/21/18:40:42

Date: Wed, 21 Jan 1998 15:38:53 -0800 (PST)
Message-Id: <199801212338.PAA05742@adit.ap.net>
Mime-Version: 1.0
To: "S. M. Halloran" <mitch AT duzen DOT com DOT tr>, swarnerx3 AT acadia DOT net (Scott Warner),
jordimln AT jet DOT es
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: Data types
Cc: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019