======================================
7.9 Analyze implementations of isupper
======================================
Question
========
Functions like isupper can be implemented to save space or to save time. Explore
both possibilities.
.. literalinclude:: cprogs/ex_7.9.c
:language: c
:tab-width: 4
Explanation
===========
This is custom implementation of isupper function instead of the standard library one.
::
int myisupper(int c) {
if (c >= 'A' && c <= 'Z')
return 1;
else
return 0;
}
Visualize
=========
.. raw:: html
Visualize the Concept
---------------------
.. raw:: html