Computer Science, asked by PragyaTbia, 1 year ago

What are Case labels? Where they are used?

Answers

Answered by karthik4894
12
A case label consists of the keywordcase , followed by an expression thatevaluates to integer constant. A default label consists of the keyword default . Case labels are used to associate an integer value with a statement in the code.
hope this helps you dear ☺️
Answered by smartbrainz
5

Explanation:

A label is a string of characters that pinpoint a location in a program. In most programming languages labels are of identifier type, usually continued by a "punctuation character".

The label serves as a destination point of a GOTO statement in most of the "high-level programming languages". Languages, like FORTRAN and BASIC, support labels of numeric type. The Labels can also used as a start point in compiled program statements during debugging.

Similar questions