What is the difference between #import and #include in objective-c?
Answer / Pawan Kumar Sahu
Both #include and #import directives are used to include header files in Objective-C. The main difference lies in how they handle file inclusion. #include will include the specified header file multiple times if it is included from different places, while #import prevents multiple inclusions of the same header file.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is abi stability?
What is objective c in ios?
What is main storyboard?
How do I open .m files?
What is protocol in objective-c?
How much does m files cost?
What is polymorphism in objective-c?
What is toll-free bridging and when is it useful?
How do I create a bridge header in objective c?
Does copy increase retain count?
What is difference between mutable and immutable?
What is the purpose of the protocol?