Q. What is the output of the following code? int main() { double x=1.2; int sum=(int)x + 1; printf("sum=%d",sum); return 0; } (Solved)
1. 2.2
2. 2
3. 2
4. conversion from double to int is not possible
- b. 2
1. 2.2
2. 2
3. 2
4. conversion from double to int is not possible