I am trying to set an NSInteger to NULL. Though the compiler does not give any error, but I am not sure if this is the right way to do it. Can you set an NSInteger as NULL in ios..? Or is it forbidden for some reason..? Or Should I set it to Nil..? Which is better practice..?
Thanks
NULL
is just0
which is why there is no issue. – NatalyaNSInteger = NULL
mean? What are you trying to do? – BillmyreNSInteger x = NULL;
does not produce any warning. I'm not saying it is the right thing to do. But it shows no warning. – Natalya