Is memory leak caused by global variables?
- by user297535
When I checked my application for memory leaks it is showing 12 leaks. What will be the effect of this?
I used global variables as shown below
#import "file1.m"
int num;
#import "file2.m"
extern int num;
num = 10;
Can this cause memory leaks?
Anyone please help. I am a beginner in programming.