Question: Which of the function definitions for a function isletter will correctly determine whether a character is an alphabetic letter and returns 1 for true and

Which of the function definitions for a function isletter will correctly determine whether a character is an alphabetic letter and returns 1 for true and 0 for false? 1. int isletter(char ch) { if((ch >= a && ch <= z)||(ch >= A && ch <= Z)) return 1; else return 0; } 2. int isletter(char ch) { if((ch >= a || ch <= z)&&(ch >= A || ch <= Z)) return 1; else return 0; }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!