i know that we should declare it in .h and define it in .c, but i want some details about it.
thanks in advance
How to declare and initialize global variables in objective-c?
extern keyword can be used to declare the global variable
Reply:use extern keyword.
or declare it outside main() in the program.