#include stdio.hWhat is the output of the above code snippet ?int main(){float x = 3.0;while (x != 4.0) {printf("x = %f\n", x);x += 0.1;}return 0;}
#includestdio.hWill the code compile?#define SWAP(a, b, c)(c t; t=a, a=b, b=t)int main(){int x=10, y=20;SWAP(x, y, int);printf("%d %d\n", x, y);return 0;}
What will be the output of the following code snippet?#include stdio.hvoid solve() {bool ok = false;printf(ok ? "YES" : "NO");}int main() {solve();return 0;}
#include stdio.hint main(){int a[] = {1, 2, 3, 4};int sum = 0;for(int i = 0; i 4; i++){sum += a[i];}printf("%d", sum);return 0;}
What will be the output?#includestdio.hint main(){unsigned int res;res = (64 (2+1-2)) & (~(12));printf("%d\n", res);return 0;}