KwickClips C · 43 sec · free
Is roll no a valid name?
Short answer. No. It has a space.
Can you name a variable int?
No. int is a keyword.
Valid names
| Name | OK? |
|---|---|
| marks2 | yes |
| 2marks | no, digit |
| roll no | no, space |
| int | no, keyword |
Remember
| No digit first |
| No spaces |
| No keywords as names |
Can a variable be called two marks, or int? Let us check. Names can use letters, digits and underscore. Two marks starts with a digit. Roll no has a space. Int is a keyword. No digit first. No spaces. No keywords.
This clip is from the full lesson: C Tokens, Data Types, Variables and Constants — 8 minutes, with the tables, the quick answers and the whole lesson in text.
Useful for: GSEB Std 10 Computer Studies, Programming All levels C, Programming All levels C, Programming All levels C
More KwickClips from this lesson
Why do some books say int is 2 bytes?44 sec
What must come before using a variable in C?41 sec
What happens if you assign to a const?40 secVoice-over is AI-generated; the script is written and checked by Kajal Ma'am. Confirm anything you plan around against your official board document. We never ask for a password or an OTP.

