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 |
Is objective c better than c++?
Is struct a class?
What is the difference between atomic and nonatomic synthesized properties?
What is m files document management?
Who calls dealloc method?
Does objective-c contain private strategies?
What is the difference between a script and function?
What is dictionary objective c?
Tell me about important protocol being used in objective c?
When is toll-free bridging useful?
Is objective c the same as c++?
What is difference between extern and global?