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.
Want to see the full answer?
Check out a sample textbook solution- The expression intNum * intNum * intNum is equivalent to which of the following expressions? intNum ^ 3 intNum * 3 intNum ^ 2 * intNum Both a and c.arrow_forwardWhich of the following is equivalent to the following statement?if(m==0)d=0; elsed=1; d=(m==0):d=0,d=1; m?(d=0);(d=1); m==0;d=0;d=1? d=(m==0)?0:1;arrow_forwardWhat is the value of each of the following Boolean expressions? 54 3=3 2+45 6==7 2+4=6 3+4==4+3 1!=2 2!=2 5==72 3+9=0arrow_forward
- Determine the value of each of the following expressions. (For decimal numbers, round your answer to two decimal places.) (1) abs(-18) fabs(20.5) fabs(-87.2) pow(4, 2.0) pow(8.4, 3.5) sqrt(7.84) sqrt (196.0) sqrt (38.44)* pow(2.4, 2) / fabs(-3.2) floor(27.37) ceil(19.2) floor(12.45) + ceil(6.7) floor (-8.9) + ceil (3.45) floor(9.6) / ceil(3.7) pow(-4.0, 6.0) pow(10, -2.0) pow(9.2, 1.0 / 2)arrow_forwardI need the answer as soon as possiblearrow_forward30arrow_forward
- What exactly is the Named constant?arrow_forward(Hint: starts with 416) Could anybody please help me with the answer code? My sqlite couldn't run.arrow_forwarddocs.google.com/forms YA Q5: Write relational expressions to express the following conditions (using variable names of your :choosing) A person's identification (1 3 نقاط number is less than 500 and the person is older than 55 إجابتك bläi 3 The current day is the 15th (2 .day of the 1st month إجابتك 3 نقاط .The letter input is m إجابتك 7 صفحة 6 منarrow_forward
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENTEBK JAVA PROGRAMMINGComputer ScienceISBN:9781305480537Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT