Mega Code Archive
Categories
/
C Tutorial
/
Data Type
To test two expressions for equality, use == instead of =
#include
main(){ int i = 5; if(i == 5){ printf(" ==. \n"); } if(i=4){ printf("do not use = "); } } ==. do not use =