cancel
Showing results for 
Search instead for 
Did you mean: 

what is record: end: in c programing?

Ala
Senior

hi

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

1 ACCEPTED SOLUTION

Accepted Solutions
Danish1
Lead II

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

View solution in original post

1 REPLY 1
Danish1
Lead II

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