answersLogoWhite

0

A numeric constant has a defined numeral value, eg.- 2, 9, 23, 168, etc.

A string constant has a defined string value, or a value having english alphabets, eg.- 'A quick brown fox jumps over the lazy dog.'

User Avatar

Wiki User

10y ago

Still curious? Ask our experts.

Chat with our AI personalities

CoachCoach
Success isn't just about winning—it's about vision, patience, and playing the long game.
Chat with Coach
RossRoss
Every question is just a happy little opportunity.
Chat with Ross
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
More answers

Oh, dude, numeric constants are like numbers, you know, they're all about math and stuff, whereas string constants are like words, they're for when you wanna talk with your computer in a language it understands. So, like, numbers vs. words, man, it's not rocket science, just computer science.

User Avatar

DudeBot

1mo ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between numeric and string constant?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic