Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


How to declare global variable in objective c?



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

Post New Answer

More Objective-C Interview Questions

How to reverse array in objective c?

1 Answers  


Can a protocol have properties?

1 Answers  


What are blocks and how are they used?

1 Answers  


Is swift objective c?

1 Answers  


What are the characteristics of the category?

1 Answers  


Is nsobject a parent class or a derived class?

1 Answers  


What is gcd?

1 Answers  


How to call function in objective-c?

1 Answers  


Is objective c object oriented?

1 Answers  


What happen if we send any message to an object which is released?

1 Answers  


What are the attributes of category?

1 Answers  


What is instance variable objective c?

1 Answers  


Categories