In my code i have defined two variable globally as a temporery variable.
When i tried to use them in the main function their value is set.
let i,j are globally defined variable.
void main()
{
if(i==1)
{
function();
}
}
Here in this function, The value of i is 1 but still the execution is not entering into the fiunction.
After that when i did like this
void main()
{int temp;
temp =i;
if(temp == 1)
{
function();
}
}
Using this method it is working.
I will be vary thankful to you if anybody tell me the reason. Any alternative solution.