I need some confirmation. I always get correct o/p but someone told me following expression will not work
Thanks in advance.
#define a 11
#define b 12
#define c 13
// I want if array[i] has values of any of these then do something
if( array[i] == (a) ||(b) ||( c))
// some function
else
printf("no match");
array[i] == (a)become a don't care because(b=12) != 0which would yield true (same for(c)but thebcondition would short-circuit)? It's been awhile since my C days...