Answer: Option 2
The sizeof() operator gives the number of bytes taken by its operand. p is a character pointer, which needs one byte for storing its value (a character). Hence sizeof(*p) gives a value of 1. Since it needs two bytes to store the address of the character pointer sizeof(p) gives 2.
Answer: Option 2 Compiler Error : Type mismatch in redeclaration of function display As the function display() is not defined before use, compiler will assume the return type of the function...
1 Answers 9 viewsAnswer: Option 4 Implicit super constructor Base is not visible, must explicitly invoke another constructor.
1 Answers 5 viewsAnswer: Option 3 1. new Derived(); statement executes and invoke the non-parametrized constructor of derived class i.e. public Derived(); 2. As Derived class is a subclass of class Base so super(); executes...
1 Answers 25 viewsAnswer: Option 2 Since the ASCII value of G is 71 and the garbage value if A is 65 and hence the difference is 6.
1 Answers 2 viewsAnswer: Option 4 \\n - newline - printf("\\nab"); - Prints 'ab' \\b - backspace - printf("\\bsi"); - firstly '\\b' removes 'b' from 'ab ' and then prints 'si'. So after execution...
1 Answers 2 viewsAnswer: Option 2 As the first option is matching, the cases are evaluated till the break statement is encountered or end of switch statement is encountered.
1 Answers 4 viewsAnswer: Option 3 Function names are just addresses (just like array names are addresses). main() is also a function. So the address of function main will be printed. %p in printf...
1 Answers 4 viewsAnswer: Option 3 Let'
1 Answers 2 views