Write a function definition for a isDigit function that takes one argument of type char and returns a bool value. The function returns true if the argument is a decimal digit; otherwise it returns false.
What will be an ideal response?
```
bool isDigit(char ch)
{
return (‘0’ <= ch) && (ch <= ‘9’);
}
```
No if-else is needed, just evaluate the Boolean expression and return it.
You might also like to view...
A __________ queue is more intuitive and easier to understand than a __________ queue.
a. static, dynamic b. dynamic, static c. deque-like, stack-like d. stack-like, deque-like e. None of these
When placing an Illustrator object into InDesign, the Illustrator object is placed as a(n) ____________________ image.
Fill in the blank(s) with the appropriate word(s).
A ________ control, like a text box, is linked to data sources while a ________ control, like a label, is used to describe data and create aesthetically pleasing forms
A) bound, calculated B) calculated, bound C) bound, unbound D) unbound, bound
A ____ is text and/or graphics that print at the top of each page in a document.
A. top-note B. title C. footer D. header