data type

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dik T. Winter

    #16
    Re: data type

    In article <47028ae8$0$510 3$ba4acef3@news .orange.frjacob navia <jacob@nospam.o rgwrites:
    Richard Heathfield wrote:
    ....
    heathfield is using the wrong compiler!
    What is wrong about that compiler? It gives one more warning message
    than yours. To quote:
    foo.c:3: warning: return-type defaults to `int'
    foo.c:3: warning: function declaration isn't a prototype
    foo.c: In function `foo':
    foo.c:3: warning: type of `x' defaults to `int'
    Your compiler gives two.
    d:\lcc\test>lc th1.c
    Warning th1.c: 2 no type specified. Defaulting to int
    Warning th1.c: 8 Missing prototype for 'foo'
    0 errors, 2 warnings
    Which of the warning messages is your compiler missing?
    --
    dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131
    home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/

    Comment

    Working...