What is difference between extern and global?
Answer / Lokesh Kumar Singh
In Objective-C, 'extern' is a keyword used to declare variables that are visible outside of their current file scope. A 'global' variable is simply a variable with file scope that can be accessed from any part of the file. However, using extern does not create a global variable; it just declares that the variable is defined elsewhere.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c hard to learn?
What is retain count?
How declare methods in objective c?
What's the difference between a thread safe and a thread unsafe function?
How messaging works in objective-c?
What is id type in objective c?
What can objective c be used for?
What is hashable?
What is a category in objective c?
Explain class definition in objective-c?
How do you define a block?
Who made objective c?