Computer Science, asked by udayyadav6849, 6 months ago

In C language, if a function return type is not explicitly defined then it defaults to what data type ?

Answers

Answered by satyanand9cshs
3

Answer:

In C, if we do not specify a return type, compiler assumes an implicit return type as int. ... This was allowed in older C standard C89.

Explanation:

thank you plzz mark me brainlist answer

Answered by vinod04jangid
0

Answer:

written below-

Explanation:

In C, if we do not specify a return type, compiler assumes an implicit return type as int.

Prior to the C99 standard, if we didn’t specify any return type for main (or for any other function, for that matter) the compiler would just assume that the function returns an int.

In modern C we must explictly indicate an int return type for main (in hosted applications).

The return type of main is int, and returning zero indicates successful termination of the program.

#SPJ3

Similar questions