⟩ What is void pointer using C++?
In C++, void represents the absence of type, so void pointers are pointers that point to a value that has no type. The void pointers can point to any data type.
We can declare void pointer as follows.
Void *p;.
In C++, void represents the absence of type, so void pointers are pointers that point to a value that has no type. The void pointers can point to any data type.
We can declare void pointer as follows.
Void *p;.
Which is more effective while calling the functions? a) call by value b) call by reference c) call by pointer d) none of the mentioned
The output of this program? #include <iostream> using namespace std; int main() { int arr[] = {4, 5, 6, 7}; int *p = (arr + 1); cout << *p; return 0; } a) 4 b) 5 c) 6 d) 7
How many max number of arguments can present in function in c99 compiler? a) 99 b) 90 c) 102 d) 127
What are mandatory parts in function declaration? a) return type,function name b) return type,function name,parameters c) both a and b d) none of the mentioned
The number of lines that exit an input in the flowchart?
In which part of the for loop termination condition is checked? for(i;ii;iii) {iv}
Where does the execution of the program starts? a) user-defined function b) main function c) void function d) none of the mentioned
Explain void free (void* ptr)?
Explain me what is an Object/Instance?
Tell me how to create a pure virtual function?