Question
Consider the following C++ code: #include #include class Printer { public: void print(int num) { std::cout << "Printing int: " << num << std::endl; } void print(std::string text) { std::cout << "Printing string: " << text << std::endl; } }; int main() { Printer p; p.print(123); p.print("Hello"); return 0; } What will be the output of this code?
More IT Operating System Questions
- Consider a delete_node(head, key) function for a singly linked list that removes the first occurrence of a node with a given key. The function works for mo...
- CDATA is used in XML to:
- What is the outpur of the following part of python program? s="india" 1=0 for x in s: if(X!="i"): 1=1+1 else: pass print(1)
- Which is relational Database
- The Knuth-Morris-Pratt (KMP) algorithm improves upon the Naive approach by avoiding unnecessary re-comparisons. It achieves this by:
- In a common backtracking approach to generate permutations of a string, elements are swapped to explore different arrangements. Complete the line that swap...
- Which type of operating system processes a group of jobs together without user interaction during their execution?
- Which SQL query correctly displays all records from EMPLOYEE_CARD where Company is Reliance, Infosys, TCS, or Cognizant?
- A disk head is at cylinder 50. Pending requests are 10,20,55,58,90. Under SSTF, which is served next?
- What is the primary purpose of the ALOHA protocol in networking?
Hey! Ask a query
Please enter email id
The email must be a valid email address.
Please enter Mobile Number
Please enter valid Mobile Number
Please enter your Doubt
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
- 200 Questions with Detailed Solutions
- Section-wise Coverage (GA, English, Quant & Reasoning)