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 |
Is objective c similar to java?
How to call function in objective-c?
Does a thread created using performselectorinbackground:withobject: creates its own autorelease pool?
What does alloc mean in objective c?
What is a delegate objective c?
Are id and instancetype same? If not, what are differences between them?
What is protocol in simple words?
How to convert objective c project to swift?
What is an objective fact?
What is meant by not thread safe?
Can you retain delegates?
Is objective c deprecated?