Skip to content
TFE Times

TFE Times

Business, Technology, and Culture

University of California Irvine Leaderboard
NYU Tandon School of Engineering Leaderboard
MAFI_728x90
Brandeis University Master of Finance Leaderboard 728x90
Click here
Click here
MAFI_728x90
Click here
RPI Leaderboard
University of California Irvine Leaderboard
  • 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 4 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 “21”.

Explanation

The type of a floating point literal is double.

SOURCE

Related

Post navigation

Bjarne-stroustrup
← Previous

C++ Interview Question 3 Answer

April 16, 2015
Bjarne-stroustrup
Next →

C++ Interview Question 5 Answer

April 16, 2015

Related Posts

C++ Interview Question 12 Answer

Posted on April 17, 2015June 20, 2016
Bjarne-stroustrup

C++: Calculate Geometric Mean

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

C++: Create a Two-Dimensional Array at Runtime

Posted on September 1, 2017April 1, 2018
Brandeis Business School
Click here
NYU Tandon School of Engineering Sideboard
University of California Berkeley Master of Financial Engineering MFE Sideboard
University of California Irvine Leaderboard
output_8BgzjE
  • How Smart Guest Posting Builds Authority in an AI-Driven Search World

    December 12, 2025 by TFE Times
  • Ways Fraud Prevention Tools Help Financial Institutions Stay Compliant

    December 12, 2025 by TFE Times
  • Exemptions That Could Lower Your Property Tax Bill in Travis County

    December 12, 2025 by TFE Times
  • Stock Market Volatility

    December 12, 2025July 24, 2025 by TFE Times
  • The Race To $5 Trillion Market Cap

    December 11, 2025November 28, 2025 by TFE Times
  • The World’s Data Centers

    December 10, 2025November 28, 2025 by TFE Times
  • conversation

    A Practical Guide to Using AI Conversation Models for Multilingual Customer Service

    December 9, 2025 by TFE Times
  • World’s Biggest Cryptos In 2025

    December 9, 2025November 28, 2025 by TFE Times
  • Job Cuts By U.S. State In 2025

    December 8, 2025November 28, 2025 by TFE Times
  • U.S. Flight Cancellations

    December 7, 2025November 28, 2025 by TFE Times

Copyright © TFE Times, LLC. All Rights Reserved.

Terms of Service | Privacy Policy | Disclaimer

WordPress Theme : Eight Paper by 8Degree Themes