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
Biology,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Social Sciences,
5 months ago
Physics,
10 months ago
Social Sciences,
10 months ago
Science,
10 months ago