Token Identification – CSKC
Sign In

Search

Solved Problem #CPP#4431    siteicon   siteicon  

Problem Statement - Token Identification

Identify the type of token (literal, identifier, keyword, punctuator etc.) in the following
1) Case    2) { }    3) break      4) O17

Solution

TC++ #4431

×

Ask AI About This Code

Default Prompt that is passed along with the code is given below, You can write your own prompt if you so desire.



×

Test CPP

1) Case
is an identifier as the word starts with capital C so it can not be a keyword.

2) { }
Above are curly braces, which come under punctuators.

3) break
break is a keyword. This is often used to come out of loop or switch case constructs.

4) O17
This is an Octal Integer so it will fall under Literal. This is an Octal Integer Literal Constant.

Notes


Share

Created: 23-Aug-2018 22:10 | Updated: 22-Mar-2026 20:20|