

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Implicit return type int in C
If some function has no return type, then the return type will be int implicitly. If return type is not present, then it will not generate any error. However, C99 version does not allow return type to be omitted even if it is int.
Example
#include<stdio.h> my_function(int x) { return x * 2; } main(void) { printf("Value is: %d", my_function(10)); }
Output
Value is: 20
- Related Questions & Answers
- What are implicit type conversions in C#?
- What are implicit and explicit type conversions in C language?
- What is the difference between implicit and explicit type conversion in C#?
- Function overloading and return type in C++
- What is the size of int, long type in C++ standard?
- MySQL index on column of int type?
- Covariant return type in Java
- Difference between const int*, const int * const, and int const * in C/C++?
- Return type of getchar(), fgetc() and getc() in C
- How to convert yyyymmdd in INT type to date?
- Convert masked array element to int Type in NumPy
- Can MySQL INT type be non-zero NULL?
- What is the size of int, long type as per C++ standard?
- Difference between const int*, const int * const, and int const * in C
- Importance of return type in Java?
Advertisements