Evaluate the C Program
#include int main() { int x = 3; float y = 3.0; if(x == y) printf("x and y are equal"); else printf("x and y are not equal"); return 0; }
Answers
Answered by
4
int x = 3 ; float y = 3.0 ;
while compare integer x with floating value y, the value of x is converted in to float value 3.0.... hence both will be equal.
so x and y are equal will be printed.
while compare integer x with floating value y, the value of x is converted in to float value 3.0.... hence both will be equal.
so x and y are equal will be printed.
vaishu12:
sir u even know c programming???
Similar questions
Social Sciences,
8 months ago
English,
8 months ago
English,
8 months ago
Music,
1 year ago
English,
1 year ago