3 ms·
It makes sense if you are using C. If you are using something like C#, compiler will throw an error (not warning) if you write if(str = "hello") See: http://s
by solutionyogi 17y ago
It makes sense if you are using C.
If you are using something like C#, compiler will throw an error (not warning) if you write
if(str = "hello")
See: http://stackoverflow.com/questions/655657/0-variable-or-null-obj-an-outdated-practice-in-c http://stackoverflow.com/questions/655657/0-variable-or-null...
- kscaldef 17y agoyour C compiler will also throw an error on that if you're using -Wall -Werror. Which you are, right?