Computer Science, asked by utsav3608, 5 months ago

explain the basic types of 'c' constants giving valid examples​

Answers

Answered by anilahirwar0002
2

Explanation:

Types of C constant:

Constant type data type (Example)

Octal constant int (Example: 013 /*starts with 0 */)

Hexadecimal constant int (Example: 0x90 /*starts with 0x*/)

character constants char (Example: 'A', 'B', 'C')

string constants char (Example: “ABCD”, “Hai”)

Answered by TheDeadlyWasp
2

Types of C constant

Constant type→ data type (Example)

Octal constant →int (Example: 013 /*starts with 0 */)

Hexadecimal constant→ int (Example: 0x90 /*starts with 0x*/)

character constants →char (Example: 'A', 'B', 'C')

string constants →char (Example: “ABCD”, “Hai”)

Similar questions