What is the output of the given program?#include stdio.husing namespace std;int main(){int array[] = {10, 20, 30};cout -2[array];return 0;}
#includestdio.hint main(){unsigned int i = 65535; /* Assume 2 byte integer*/while(i++ != 0)printf("%d",++i);printf("\n");return 0;}
What is the output of this program? class output {
public static void main(String args[])
{
String s1 = "one";
String s2 = s1 + " two";
System.out.println(s2);
}
}
What will be the result of the following code snippet?#include stdio.hvoid solve() {char ch[10] = "abcdefghij";int ans = 0;for(int i = 0; i 10; i++) {ans += (ch[i] - 'a');}printf("%d", ans);}int main() {solve();return 0;}
final class AWhat will be the output??{int i;}class B extends A{int j;System.out.println(j + " " + i);}class inheritance{public static void main(String args[]){B obj = new B();obj.display();}}
int main(){int a=10, b=20;printf("a=%d b=%d",a,b);a=a+b;b=a-b;a=a-b;printf("a=%d b=%d",a,b);return 0;}