In C language, if a function return type is not explicitly defined then it defaults to what data type ?
Answers
Answered by
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
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
Math,
3 months ago
English,
3 months ago
Math,
3 months ago
Social Sciences,
6 months ago
Social Sciences,
6 months ago
Physics,
11 months ago
Social Sciences,
11 months ago
Science,
11 months ago