Why Crashes when int arr = 1 && arr; but not int arr = 0 && arr;
Posted
by mahesh
on Stack Overflow
See other posts from Stack Overflow
or by mahesh
Published on 2010-04-10T16:04:05Z
Indexed on
2010/04/10
16:13 UTC
Read the original article
Hit count: 397
Filed under:
c
Hi,
I wanted to know why the following code crashes.
int main( )
{
int arr = 1 && arr;
return 0;
}
BUT not with the below code
int main( )
{
int arr = 0 && arr;
return 0;
}
Thanks in advance
© Stack Overflow or respective owner