Respuesta :
The C programming language is thought to be case-sensitive. Both the sentences "Hello learner" and "HELLO LEARNER" signify the same thing, but the second one differs in that all the letters are capitalised.
What is Meant by Case Sensitivity in C Language?
- The case-sensitive nature of C. This requires constant letter capitalization for all language keywords, identifiers, function names, and other variables.
- The keywords and identifiers can be treated differently in C since it can discriminate between uppercase and lowercase characters.
Example Coding :
// Respond to the user's menu selection.
switch (choice)
{
case CIRCLE_CHOICE:
cout << "\nEnter the circle's radius: ";
cin >> radius;
if (radius < 0)
cout << "\nThe radius can not be less than zero.\n";
else
{
area = PI radius radius;
cout << "\nThe area is " << area << endl;
}
break;
case RECTANGLE_CHOICE:
cout << "\nEnter the rectangle's length: ";
cin >> length;
cout << "Enter the rectangle's width: ";
cin >> width;
if (length < 0 || width < 0)
{
cout << "\nOnly enter positive values for "
<< "length and width.\n";
}
else
{
area = length * width;
cout << "\nThe area is " << area << endl;
}
break;
case TRIANGLE_CHOICE:
cout << "Enter the length of the base: ";
cin >> base;
cout << "Enter the triangle's height: ";
cin >> height;
if (base < 0 || height < 0)
{
cout << "\nOnly enter positive values for "
<< "base and height.\n";
}
else
{
area = base height 0.5;
cout << "\nThe area is " << area << endl;
}
break;
case QUIT_CHOICE:
cout << "Program ending.\n";
break;
default:
cout << "The valid choices are 1 through 4. Run the\n"
<< "program again and select one of those.\n";
}
return 0;
}
To Learn more About case-sensitive refer to:
https://brainly.com/question/15577168
#SPJ4