What will be the output of the program ?
union a u;
The system will allocate 2 bytes to the array
Write a program to find factorial of a number.
printf("input the number whose factorial has to be found");
u.i is calculated as
(6)(7) in binary form which is equal to 1798.
Which of the following is similar to constructor overloading?
None of the above
Answer: Option C.
In function overloading, we will be using the same options availed in constructor overloading.
Which of the following is a branch of polymorphism?
None of these
Answer: Option A.
Which of the following is feature of friend classes?
If class A is a friend of class B, class B is not automatically a friend of class A.
If class A is a friend of class B, and class B is a friend of class C, class A is not automatically a friend of class C