Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
University of Maryland Masters of Economics  Leaderboard
NYU Tandon School of Engineering Leaderboard
Click here
University of Maryland Masters of Economics Leaderboard
RPI Leaderboard
MAFI_728x90
Brandeis University Master of Finance Leaderboard 728x90
Click here
University of California Irvine Leaderboard
Click here
MAFI_728x90
  • Business
  • Culture
  • Technology
  • International Rankings
    • Bangladesh
    • Canada
    • Egypt
    • India
    • Nigeria
    • Pakistan
    • Philippines
    • United Kingdom
    • United States of America
  • Masters Rankings
    • Accounting
    • Business Analytics
    • Chiropractic
    • Computer Engineering
    • Computer Science
    • Economics
    • Education
    • Finance
    • Financial Economics
    • Financial Engineering
    • Law
    • Management
    • Marketing
    • MBA
    • Nursing
    • Social Work
  • Resources
    • C++
      • Beginner’s Guide to C++
      • An Introduction to the Imperative Part of C++
      • C++ Code
        • Sorts
        • Binary Search Trees
        • Strings
        • Binary Search
        • Math
        • Quant
        • Puzzles/Games
        • Language Concepts
        • Graphics
        • OS Operations
        • Graphs
      • C++ Full Course
      • C++ Crash Course
      • C++ Interview Questions
      • C++ Q/A
      • C++ Books
      • C++ Free Books
      • C++ Videos
    • C Questions
    • C Programming Tips
    • Java Questions
    • Quant Data Sources
    • Quant Questions

C++ Interview Question 1 Answer

Posted on April 16, 2015June 20, 2016 by TFE Times
Posted in C++, Interview Questions
Bjarne-stroustrup
 

Answer

This question is compilable and deterministic.

Its output is “1”.

Explanation

The templated function will be instantiated as void f(int&), which is a better match than f(const int&).

SOURCE

Related

Post navigation

← Previous

History of Life

April 16, 2015
Bjarne-stroustrup
Next →

C++ Interview Question 2 Answer

April 16, 2015

Related Posts

Bjarne-stroustrup

C++: File Modification Time

Posted on September 1, 2017April 1, 2018
Bjarne-stroustrup

C++: Root Mean Square

Posted on September 1, 2017April 1, 2018
C_plus_plus_at_woodlands_school

C++: What is the name of the “–>” operator?

Posted on September 1, 2017April 1, 2018
University of Maryland Masters of Economics Sideboard
output_8BgzjE
Click here
University of California Irvine Leaderboard
University of Maryland Masters of Economics Sideboard
NYU Tandon School of Engineering Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
Brandeis Business School
  • Bunny96 Casino Australia: $20 No Deposit Bonus in 2026

    June 11, 2026 by TFE Times
  • Bankroll Management Tips for Online Pokies Players

    June 11, 2026 by TFE Times
  • The Last Five Winners of the Oaks

    June 11, 2026June 11, 2026 by TFE Times
  • The World’s Most Powerful Rivers

    June 11, 2026November 22, 2025 by TFE Times
  • Where People Eat The Most Meat

    June 10, 2026November 22, 2025 by TFE Times
  • The Religious States Of America

    June 9, 2026November 22, 2025 by TFE Times
  • Joka Room Deposit Methods: Payment Guide for Australian Players

    June 8, 2026 by TFE Times
  • Top 10 Restaurants in Buffalo, New York

    June 8, 2026June 7, 2026 by TFE Times
  • Top Countries Losing Forest Area

    June 7, 2026November 22, 2025 by TFE Times
  • Common Financial Mistakes People Make During Money Emergencies

    June 6, 2026June 6, 2026 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes