---
title: "What is the use of #include keyword in c programming?"  
description: "What is the use of #include keyword in c programming?"  
author: "Oasge Christiansen"  
published: 2017-12-07  
canonical: https://answers.mindstick.com/qa/31502/what-is-the-use-of-include-keyword-in-c-programming  
category: "programming"  
tags: ["c programming"]  
reading_time: 1 minute  

---

# What is the use of #include keyword in c programming?

What is the use of [#include](https://www.mindstick.com/interview/23463/difference-between-include-filename-and-include-filename) [keyword](https://www.mindstick.com/blog/389/java-script-void-keyword) in c [programming](https://www.mindstick.com/articles/12214/web-development-company-in-india-laid-on-the-foundation-of-concrete-java-programming)?

## Answers

### Answer by Arti Mishra

**#include keyword in C Programming** #include keyword is the pre-defined keyword in C Language. That is used for allowing the pre-processor to copy the content of header files in the current source code where the #include keyword is used.\
**Syntax of #include keyword** #include <header_file_name> OR #include "header_file_name" \
**A list of header file names****\** ![What is the use of #include keyword in c programming?](https://answers.mindstick.com/questionanswer/28b2c6f8-af35-445c-a438-aae72eb56552/images/6cb0a0f1-8671-4104-b976-dbc4f819ed3f.png)\
**Example:** Here is the simple example where we are using #include keyword or directory to check the number is perfect number or not.\
#include<stdio.h> #include<conio.h> Void main() { int number, remainder, sum = 0, i; clrscr(); // use for clear the console window printf(“Enter Any Number : “); scanf(“%d”,&number); for(i=1;i<=number/2;i++) { remainder = number % i; sum = sum + i; } if (sum == number) printf("Entered Number is perfect number"); else printf("Entered Number is not a perfect number"); } \


---

Original Source: https://answers.mindstick.com/qa/31502/what-is-the-use-of-include-keyword-in-c-programming

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
