sizeof() O/P

K

Keith Thompson

Jan Engelhardt said:
Given that <stdio.h> was included, the return type of printf is int,
and an int in turbo C is a 16-bit entity.

Given that <stdio.h> *wasn't* included, the compiler assumes that any
unrecognized function returns an int. See my other response on this
thread.
Try again on a modern compiler and you should get 4.

It depends on the system.
 

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
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top