what is the default return type of a function?

M

Mike Wahler

Re: what is the default return type of a function?

Please put your entire question in your message body.
Not all newsreaders show the subject line while showing
message body.
int or char or void?
and how to check it?

For C90, if no return type specified, it defaults
to type 'int'. For C99, there is no 'default',
it must be explicitly specified.

-Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,104
Messages
2,570,643
Members
47,247
Latest member
youngcoin

Latest Threads

Top