Programming in C
Programming in C
4th Edition
ISBN: 9780321776419
Author: Stephen G. Kochan
Publisher: Addison-Wesley
Question
Book Icon
Chapter 3, Problem 3E
Program Plan Intro

Rules for constants:

Integer constants:

The integer constants can be decimal, octal or hexadecimal constants can only have numbers (0 – 9), non-real numbers. It can also have suffix that is a combination of “L” and “U” for long and unsigned respectively.

Floating point constants:

The floating point constants have an integer, decimal, fractional and exponent values. The user can represent floating point variables either decimal or exponential form.

Character constants:

The character constants are enclosed in single quotes. It can be an escape sequence, plain character or universal character.

String constants:

The string constants are enclosed in double quotes. It contains characters that are similar to character constants ie., escape, plain and universal sequence. The user can break the long line into many lines using string constants and separating them using blank spaces.

Blurred answer
Students have asked these similar questions
Which of the following are true?   Ø ⊆ A, Ø ⊆ B, {0} ⊆ A, {0} ⊆ B
Which of the following is false? * i need answer now
Which of the following expressions is closest in value to 1? A) .09 B) 1.011 C) 99 ÷ 100 D) 100 ÷ 99
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage