How to declare global variable in objective c?
Answer / Girijesh Singh
"To declare a global variable in Objective-C, you can place the declaration outside of any function or method. Here's an example:nnextern int myGlobalVar;nextime_t myGlobalTime;" (Note: External declarations require the 'extern' keyword when used in multiple files.)
| Is This Answer Correct ? | 0 Yes | 0 No |
What is parsing? Mention which class can you use for parsing of xml in iphone?
What optional binding?
Does objective-c contain private strategies?
What is the purpose of the protocol?
What is objective c runtime?
Tell us the result when you invoke a particular method on a nil pointer?
When would you use nsarray and nsmutablearray?
What is an m file?
Who calls dealloc method?
Can a protocol have properties?
What does __ block do?
Explain what do you mean by synthesized in objective-c?