Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How is #import different from #include?



How is #import different from #include?..

Answer / Pooja Vishwakarma

#import and #include are both used for including headers in Objective-C, but they have slightly different behaviors. #import creates unique instances of the header files to prevent multiple inclusion, while #include simply includes the content of the header file regardless of whether it has already been included or not. This can lead to issues when using #include with system headers that define macros.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Objective-C Interview Questions

What's the difference between a thread safe and a thread unsafe function?

1 Answers  


What is atomic property?

1 Answers  


Can objective c run on windows?

1 Answers  


What is m files document management?

1 Answers  


How to call a function in objective-c?

1 Answers  


Is swift objective c?

1 Answers  


Who calls dealloc method?

1 Answers  


What are the rules for identifiers?

1 Answers  


Who calls dealloc method? Can we implement dealloc in arc? If yes, what is the need to do that?

1 Answers  


What objective-c program consists of?

1 Answers  


What is enum constant?

1 Answers  


Does objective-c contain private strategies?

1 Answers  


Categories