← BYTES
C·Starter·Ref: 7.1.18

What return type does the entry-point function `main` have in standard C?

Have a question about this video? Mention reference 7.1.18 when you contact us.

a.void
b.char
c.int
d.main has no return type
`int main(void)` or `int main(int argc, char *argv[])` is the standard signature -- the returned int becomes the program's exit status reported to the operating system.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES7118#C