explain the basic types of 'c' constants giving valid examples
Answers
Answered by
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
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