Business Studies, asked by Bapibigbos384, 1 month ago

What are the types of Constants in C Language.?

Answers

Answered by rayan082005
2

Answer:

There are 4 types of constants in C.

Integer constants.

Character constants.

Real/Floating point constants.

String constants.

Answered by priyarksynergy
0

Integer constants , Floating-point or  Real constants, Octal constant ,Hexadecimal constant  , character constants, string constants  

Explanation:

Type of Constants           Data type                        Example of Data type

Integer constants                  int                                  23, 738, -1278, etc.

                                        unsigned int                    2000u, 5000U, etc.

                                    long int, long long int         325,647 1,245,473,940

Floating-point or               doule                                  500.987654321

Real constants                float                                    20.987654

Octal constant                       int                                 013 /*starts with 0 */

Hexadecimal constant          int                                  0x90 /*starts with 0x*/

character constants              char                             ‘X’, ‘Y’, ‘Z’

string constants                     char                             “PQRS”, “ABCD”

Similar questions