class string_class{public static void main(String args[]){String obj = "I LIKE JAVA";System.out.println(obj.length());}}
#includeiostreamusing namespace std;class A{public:A() { cout "\n A's constructor"; }A(const A &a) { cout "\n A's Copy constructor"; }A& operator= (const A &a){if(this == &a) return *this;cout "\n A's Assignment Operator"; return *this;}};class B{A a;public:B(A &a):a(a) { cout "\n B's constructor"; }};int main(){A a;B b(a);return 0;}
What will be the output of the program?
#include stdio.hvoid main(){printf("value is = %d",(10++));}
What is the output of the program?if(true && false && true || false)System.out.println("True.");elseSystem.out.println("False");
#includestdio.hvoid main(){if(!printf(""))printf("Hello");elseprintf("Bye");}