R Programming
SAS vs R: What's the Difference?
What is SAS? SAS stands for S tatistical A nalysis S oftware which is used for Data Analytics. It helps...
Like every other language, 'C' also has its own character set. A program is a set of instructions that, when executed, generate an output. The data that is processed by a program consists of various characters and symbols. The output generated is also a combination of characters and symbols.
A character set in 'C' is divided into,
A compiler always ignores the use of characters, but it is widely used for formatting the data. Following is the character set in 'C' programming:
| , (comma) | { (opening curly bracket) |
| . (period) | } (closing curly bracket) |
| ; (semi-colon) | [ (left bracket) |
| : (colon) | ] (right bracket) |
| ? (question mark) | ( (opening left parenthesis) |
| ' (apostrophe) | ) (closing right parenthesis) |
| " (double quotation mark) | & (ampersand) |
| ! (exclamation mark) | ^ (caret) |
| |(vertical bar) | + (addition) |
| / (forward slash) | - (subtraction) |
| \ (backward slash) | * (multiplication) |
| ~ (tilde) | / (division) |
| _ (underscore) | > (greater than or closing angle bracket) |
| $ (dollar sign) | < (less than or opening angle bracket) |
| % (percentage sign) | # (hash sign) |
TOKEN is the smallest unit in a 'C' program. It is each and every word and punctuation that you come across in your C program. The compiler breaks a program into the smallest possible units (tokens) and proceeds to the various stages of the compilation. A token is divided into six different types, viz, Keywords, Operators, Strings, Constants, Special Characters, and Identifiers.
In 'C' every word can be either a keyword or an identifier.
Keywords have fixed meanings, and the meaning cannot be changed. They act as a building block of a 'C' program. There are a total of 32 keywords in 'C'. Keywords are written in lowercase letters.
Following table represents the keywords in 'C'-
| auto | double | int | struct |
| break | else | long | switch |
| case | enum | register | typedef |
| char | extern | return | union |
| const | short | float | unsigned |
| continue | for | signed | void |
| default | goto | sizeof | volatile |
| do | if | static | while |
An identifier is nothing but a name assigned to an element in a program. Example, name of a variable, function, etc. Identifiers are the user-defined names consisting of 'C' standard character set. As the name says, identifiers are used to identify a particular element in a program. Each identifier must have a unique name. Following rules must be followed for identifiers:
What is SAS? SAS stands for S tatistical A nalysis S oftware which is used for Data Analytics. It helps...
Download PDF 1) Mention what is Jenkins? Jenkins is an open source tool with plugin built for...
Download PDF 1) What is UNIX? It is a portable operating system that is designed for both...
Virtual Card providers help you to get the computer-generated credit/debit card (not physical...
PC optimization improves the life of your PC, and prevents the virus, bugs, malware from infecting your...
What is SQOOP in Hadoop? Apache Sqoop ( SQL-to-Hadoop ) is designed to support bulk import of data...