class String_demo{public static void main(String args[]){char chars[] = {'h', 'e', 'm','a'};String s = new String(chars);System.out.println(s);}}
void main(){int x=16,y=-2;double p=1.0;if (y=0){while(y--)p*=x;}else{while(y++)p/=x;}printf("16 to power -2 is %f\n",p);}
void solve(){printf("%d %d %d", (057), (24), (0x87));}int main() {solve();return 0;}
Output for thisclass Bk{public static void main (String args []){int x=2;int y=4;System.out.println(x++ + ++y - x--)}}
Find the output of the code :-#include iostreamusing namespace std;int main() {int P[4] = {10, 14, 8, 12};int j = 0;for(int i = 0; i4;i++){if(P[i] = 10){j++;}else j;}coutj;return 0;}