Toplevel traversal in a BST Class with parent virtual function defined (program) Virtual destructor copy constructor, copy constructor why do we give reference Polymorphism Frequency of characters in "globallogic" If we declare a constructor as private, can we create an object ? Ans: we can't create object on stack but we can create on heap using new Even or odd using Thread coding question #include <thread> #include <iostream> using namespace std; void even_func(int n) { if(n%2 == 0) { cout << "Number is even" <<endl; } } void odd_func(int n) { if(n%2 != 0) { cout << "Number is odd" <<endl; } } int main() { for(int i=0; i< 100; i++) { thread th1(even_func, i); thre...
Comments
Post a Comment