#include stdio.hvoid solve() {int x = 2;printf("%d", (x 1) + (x 1));}int main() {solve();return 0;}
Find the output of the following program
#include iostream#include cstringusing namespace std;int main (){char str1[10] = "Hello";char str2[10] = "World";char str3[10];int len ;strcpy( str3, str1);strcat( str1, str2);len = strlen(str1);cout len endl;return 0;}
What will be the final values of i and j in the following C code?#include stdio.hint x = 0;int main(){int i = (f() + g()) | g(); //bitwise orint j = g() | (f() + g()); //bitwise or}int f(){if (x == 0)return x + 1;elsereturn x - 1;}int g(){return x++;}
What is the output of the program ?#include stdio.h#if X == 3#define Y 3#else#define Y 5#endifint main(){printf("%d", Y);return 0;}