when i wrote this a took nothing
Code:#include <stdio.h> int main( ) { int x = 10, y = 20 ; if ( x == y ) printf ( "\n%d %d", x, y ) ; system("pause"); }when i wrote this i took the correct result.I think it should give the correct result in first beacuse of ; near if expression.What's my fault?Code:#include <stdio.h> int main( ) { int x = 10, y = 20 ; if ( x == y ) ; printf ( "\n%d %d", x, y ) ; system("pause"); }