⟩ How types are there in user defined conversion? a) 1 b) 2 c) 3 d) 4
b) 2
b) 2
What is Pointer Constant?
Explain pointer with examples?
Explain function pointers?
Explain const pointer and const reference?
Can you please explain the difference between Pointer to constant and pointer constant?
What is the output of this program? #include <iostream> using namespace std; void fun(int x, int y) { x = 20; y = 10; } int main() { int x = 10; fun(x, x); cout << x; return 0; } a) 10 b) 20 c) compile time error d) none of the mentioned
Which of the following is used to terminate the function declaration? a) b) ) c) ; d) none of the mentioned
What is the output of this program? #include <iostream> using namespace std; void mani() void mani() { cout<<"hai"; } int main() { mani(); return 0; } a) hai b) haihai c) compile time error d) none of the mentioned
What is the output of this program? #include <iostream> using namespace std; int main() { int a[2][4] = {3, 6, 9, 12, 15, 18, 21, 24}; cout << *(a[1] + 2) << *(*(a + 1) + 2) << 2[1[a]]; return 0; } a) 15 18 21 b) 21 21 21 c) 24 24 24 d) Compile time error
What is the scope of the variable declared in the user definied function? a) whole program b) only inside the {} block c) both a and b d) none of the mentioned