t5saisilishan t5saisilishan
  • 03-02-2017
  • Computers and Technology
contestada

Assume that x is a char variable that has been declared and already given a value . write an expression whose value is true if and only if x is a upper-case letter.

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 04-02-2017
#include <ctype.h>

int result;

result = ( toupper( x ) == x ) ? 1 : 0;
Answer Link

Otras preguntas

Why do plane mirrors and convex mirrors form only virtual images? A. because the focal point is in front of the mirror B. because they cannot make light rays
Which sesame street character was bright orange during the show's first season?
8. Give the most accurate classification for the triangle below. a. equilateral triangle b. isosceles triangle c. scalene triangle
What is the solution to |x–3|=7?
Your doctor told you to eat 25 grams of fiber each day. You had 6 grams of fiber for breakfast. What percent of the 25 grams of fiber have you eaten so far?
can anyone help. i'm stuck on this question. thanks
Why would frescoes be an important part of Romanesque architecture, but rarely used in Gothic architecture?
Oliver’s room is 3 yards wide. The perimeter of the room is 14 yards. What is the area of Oliver’s room?
The rules (postulates, theorems, etc) are the same for Euclidean and non-Euclidean Geometry
AB¯¯¯¯¯ has end points at A (0, 5) and B (0, 0) . A transformation is performed on AB¯¯¯¯¯ and the image is A'B'¯¯¯¯¯¯¯ with end points A' (0, 10) and B' (0,