Answer Posted / 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 |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category