---
title: "What is the difference between #include and #import?"  
description: "What is the difference between #include and #import?"  
author: "Elena Glibart"  
published: 2017-01-07  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/23147/what-is-the-difference-between-include-and-import  
category: "ios"  
tags: ["iphone", "ios"]  
reading_time: 1 minute  

---

# What is the difference between #include and #import?

#import ensures that a file is only included once \
#import preprocessor automatically check the headers that have been included and ignores if a header is already imported more than once.\
#include allow you to include the same file many times.

## Answers

### Answer by Elena Glibart

#import ensures that a file is only included once \
#import preprocessor automatically check the headers that have been included and ignores if a header is already imported more than once.\
#include allow you to include the same file many times.


---

Original Source: https://www.mindstick.com/interview/23147/what-is-the-difference-between-include-and-import

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
