Skip to main content
Ala
Senior
April 16, 2022
Solved

what is record: end: in c programing?

  • April 16, 2022
  • 1 reply
  • 749 views

hi

my question is simple: what does record:/end: mean in a code?

    This topic has been closed for replies.
    Best answer by Danish1

    A symbol e.g. "record" "end" followed by a colon ":" makes a label.

    Labels are used in switch statements and (more rarely) goto statements.

    "record" and "end" might be defined in an enum statement.

    This is all pretty fundamental C, which will be covered in all good books on the C programming language.

    My favourite is "The C Programming Language" by Kernighan and Ritchie.

    Hope this helps,

    Danish

    1 reply

    Danish1
    Danish1Best answer
    Lead III
    April 16, 2022

    A symbol e.g. "record" "end" followed by a colon ":" makes a label.

    Labels are used in switch statements and (more rarely) goto statements.

    "record" and "end" might be defined in an enum statement.

    This is all pretty fundamental C, which will be covered in all good books on the C programming language.

    My favourite is "The C Programming Language" by Kernighan and Ritchie.

    Hope this helps,

    Danish