- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- 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 Articles
- 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#?
- C++ Program to Convert long Type Variables to int
- C++ Program to Convert int Type Variables to long
- C++ Program to Convert int Type Variables into String
- C++ Program to convert double type Variables into int
- Function overloading and return type in C++
- What is the size of int, long type in C++ standard?
- Return type of getchar(), fgetc() and getc() in C
- Difference between const int*, const int * const, and int const * in C/C++?
- MySQL index on column of int type?
- How to convert yyyymmdd in INT type to date?
- Convert masked array element to int Type in NumPy
- What is the size of int, long type as per C++ standard?

Advertisements