Ends in 7 days

BLACK FRIDAY: Receive 83% off Programiz PRO

+🎁 Buy 1 year, gift 1 year FREE — Split with a friend for just $49.50 each

Start FREE trial →
Background Image

Buy 1 year, Gift 1 year —completely FREE

Start FREE trial →
Anuradha Singh
6 months ago
Anuradhacountry asked

What does 'fixed values' mean?

Palistha Singh
Expert
5 months ago

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.