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 is assign property in objective c?

1 Answers  


What are the types of ios binaries you can create using xcode?

1 Answers  


What is a dispatch method?

1 Answers  


What is objective c written in?

1 Answers  


What is main storyboard?

1 Answers  


Can you use swift and objective c together?

1 Answers  


How declare methods in objective c?

1 Answers  


What is atomic property?

1 Answers  


What happens when you create a block?

1 Answers  


What does @synchronized() do?

1 Answers  


What are nsautoreleasepool?

1 Answers  


Explain how the class “implementation” is represented in objective-c?

1 Answers  


Categories