class baseWhat is the output of the following ?{public:base(){cout"BCon";}~base(){cout"BDest ";}};class derived: public base{public:derived(){ cout"DCon ";}~derived(){ cout"DDest ";}};int main(){derived object;return 0;}
What is the output of this program.#includestdio.hvoid solve() {int a = 3;int res = a++ + ++a + a++ + ++a;printf("%d", res);}int main() {solve();return 0;}
What will be the final value of x in the following C code?#include stdio.hvoid main(){int x = 5 * 9 / 3 + 9;}
What will this program printmain(){int i = 2;{int i = 4, j = 5;printf("%d %d", i, j);}printf("%d %d", i, j);}