1. What is the ASCII value of the character \'c\'? 2 .Explain what the tolower()
ID: 3652920 • Letter: 1
Question
1. What is the ASCII value of the character 'c'? 2 .Explain what the tolower() function does to a character. The answer should include the argument(s) that are passed to tolower() (if any) and what it returns. 3. Write a C++ statement that takes the digit character in the char variable ch and changes it to its integer representation and saves the result in the integer variable intVal. So if ch contains '4', then intVal should contain the value 4. Assume that ch and intVal have been properly declared. 4. What is a scalar? 5. Give an example of a non-scalar data type.Explanation / Answer
1.99 2.Converts c to its lowercase equivalent if c is an uppercase letter and has a lowercase equivalent. If no such conversion is possible, the value returned is c unchange 3.atoi or strtol functions (stdlib.h) 4.A scalar is a quantity that has only magnitude. A vector is a quantity that has both magnitude and direction. The magnitude tells you how much, or how strong; the direction tells you where, or to where. 5.enum
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.