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’);
}
```

Computer Science & Information Technology

You might also like to view...

How would you change your login shell to tcsh without using root privileges?

What will be an ideal response?

Computer Science & Information Technology

Describe in a paragraph the “politics” of the Training and Management Systems Department at M R E? Who is involved and what are some of the main issues?

What will be an ideal response?

Computer Science & Information Technology