Sunday, 1 September 2013

If i define an array in if statement then does memory get allocated

If i define an array in if statement then does memory get allocated

If i define an array in if statement then does memory gets allocated
during compile time
eg.
if(1)
{
int a[1000];
}
else
{
float b[1000];
}
then a memory of 2*1000 for ints + 4*1000 for floats get allocated?

No comments:

Post a Comment