#include stdio.hvoid solve() {int a = 3;int res = a++ + ++a + a++ + ++a;printf("%d", res);}int main() {solve();return 0;}
What will be the output of the following program?public class CountoccurrencesOfCharacter{string inputstring = "LoveYourself"char searchChar = 'a'int count = 0;for(int i=0; iinputstring.length(); i++){if(inputstring .charAt(i) == searchChar){count++}}system.out.println("Character" + searchChar+"appears in the inputstring"+count+"times");}}
#include stdio.hint main (){unsigned i = -2;int j = -4;printf("%u", i);return 0;}
#include stdio.hint main() {int a=1,b=2,c=3,d=4;int x[5] ={a,b,c,d};a=--x[3];b=x[3]--;c=++x[3];d=x[3]++;printf("%d %d %d %d",a,b,c,d);return 0;}