assignment instead of comparison
Multiple choice questionWhat is this C language code do?#include <stdio.h>main() { int c, nl; nl = 0; while ((c = getchar()) != EOF) if (c = '\n') ++nl; printf("%d\n", nl); }
View ArticleNull value in comparison expression
Multiple choice questionGiven the following PHP code, what will be the output? function print_weather($weather){ if ($weather =="hot") $weather_id = 0; else if ($weather =="cold") $weather_id = 1; else...
View Article
More Pages to Explore .....