Anuradha Singh
2 days ago
Anuradhacountry asked

What does 'fixed values' mean?

Palistha Singh
Expert
yesterday

Hey! In programming, fixed values are values you write directly into your code — they don't change while the program runs. These are called literals.

For example:

  • 5 → an integer literal
  • 3.14 → a floating-point (double) literal
  • "Hello" → a string literal

They're called "fixed" because you're using them directly in your code, without assigning them to variables (yet).

Let me know if you want to see how to use them in a C++ program!

C++
This question was asked as part of the Learn C++ Basics course.