Wednesday 6 March 2013

Character set and C-Tokens


Character Set: C is a powerful programming language. Not only C, every language follows some rules. These rules are required for writing a program. In order to write a program some alphabets, digits and special symbols are used. All this is known as Character set. Character set is used to write program blocks, variables and identifiers etc. Character set consists of the upper and lower case alphabets, digits, special characters and white space.
Alphabets: It consists of both upper and lower case alphabets. It can be ‘A’ to ‘Z’ or ‘a’ to ‘z’ or combination of the alphabets. These are used for naming purpose. C language is a case sensitive language. It means that lower and upper case alphabets are different. For example: 'A' is different from 'a'. Both can be used in the program and both can contain different values. But one thing should be noted that same variable or name cannot be used for two purposes. If we do so then it will create a big confusion.
Digits: Digits represent to the numeric values. These are used by the programmer for assigning the values to the variables. Digits are same as the mathematical digits i.e. 0 to 9 or combination of the digits. It consists both of positive and negative numbers. Also it includes decimal point values. The programmer can assign any numeric value depending on the data type. For example: a=5, b=109, c=-69, d=48.56
Special Symbols: On the keyboard all keys are special symbols except alphabets, digits and function keys or hot keys. Such as: &, $, @. All these symbols are used for special purposes.
Tokens: Tokens are various C program elements. Tokens are identified by the compiler during compilation. Tokens are useful for compiler to detect errors. When tokens are not arranged in a particular sequence then compiler generates an error message. These tokens are: Keywords, Identifiers, Variables, Constants and Delimiters or separators

12 Comments:

At 14 December 2017 at 03:08 , Blogger Unknown said...

Very good..,
easy language

 
At 14 February 2018 at 04:29 , Blogger Unknown said...

really helpful
hr interview questions
hibernate interview questions
selenium interview questions
c interview questions
c++ interview questions
linux interview questions

 
At 14 February 2018 at 04:30 , Blogger Unknown said...

awesome blog
spring mvc interview questions
machine learning online training
servlet interview questions
mytectra.in
wcf interview questions

 
At 5 May 2018 at 00:16 , Blogger Unknown said...

Aloha,

A really interesting, clear and easily readable character set and c-token article of interesting and different perspectives. I will clap. So much is so well covered here.

Using C Prog, Dev a prog that will play a number guessing game. The prog should allow users to enter their 3 numbers (between 0-9). You must store the 3 numbers in a 1D array.

You prog should use functions. The prog should display a simple menu to the user and each option in the menu will be implemented by calling a separate function. You must use pointer notation to access array elements-NOT subscripts.

1. Enter 3 selected numbers
2. Display the contents of the 1D array containing the numbers you entered.
3. Compare your chosen lotto numbers in the 1D array with eh following winning numbers: 1,3, 5

Return to the main() function how many numbers the use entered correctly and display this.

4. Reverse the contents of the 1D array containing the numbers the user entered correctly and display this.


Thanks a lot. This was a perfect step-by-step guide. Don’t think it could have been done better.
Kind Regards,


 
At 8 May 2018 at 05:25 , Blogger Unknown said...

Hello There,


Hot! That was HOT! Glued to the Basics of Programming your proficiency and style!x


I am trying to load a few lines ( many strings separated by a space) from a text file and break them into string tokens and store it as structure fields. This functions should be performed by the load items(item); function.
However there is an anomaly. When I print the structure fields to check if they have been loaded properly, it turns out they are not!. when I print structure fields outside the load items(item); function the fields do not seem to be stored properly in the array.


Thank you very much and will look for more postings from you.

Many Thanks,
Jacob

 
At 10 May 2018 at 01:15 , Blogger Unknown said...

Your very own commitment to getting the message throughout came to be rather powerful and have consistently enabled employees just like me to arrive at their desired goals. Best AWS Training in Bangalore

 
At 18 May 2018 at 00:41 , Blogger Unknown said...

Hello There,


Great post. Well though out. This piece reminds me when I was starting out Basics of Programming after graduating from college.

I'm a rank newbie to Linux. I don't even know whether to pronounce it with a long or short 'I'.
The other day I downloaded Linux Lite to a folder. Then I installed Express Burn so I could burn the image to a DVD, which I did yesterday. Today I took my test laptop with Windows 7 on it and changed the BIOS to boot from the DVD drive first and gave it a go. It boots great and works slick as oiled ice. Disk out, my Win 7 boots up the way it should.
Excellent tutorials - very easy to understand with all the details. I hope you will continue to provide more such tutorials.

Thanks and Regards,
Abhiram

 
At 1 August 2018 at 23:19 , Blogger Unknown said...

• Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating IOT Online Training

 
At 8 April 2019 at 03:21 , Blogger nepal said...

This comment has been removed by the author.

 
At 8 April 2019 at 03:22 , Blogger nepal said...

may I know the different between character set and token

 
At 6 December 2019 at 01:35 , Blogger Garrick Co Ida said...

The development of artificial intelligence (AI) has propelled more programming architects, information scientists, and different experts to investigate the plausibility of a vocation in machine learning. Notwithstanding, a few newcomers will in general spotlight a lot on hypothesis and insufficient on commonsense application. Machine Learning Final Year Projects In case you will succeed, you have to begin building machine learning projects in the near future.

Projects assist you with improving your applied ML skills rapidly while allowing you to investigate an intriguing point. Furthermore, you can include projects into your portfolio, making it simpler to get a vocation, discover cool profession openings, and Final Year Project Centers in Chennai even arrange a more significant compensation.


Data analytics is the study of dissecting crude data so as to make decisions about that data. Data analytics advances and procedures are generally utilized in business ventures to empower associations to settle on progressively Python Training in Chennai educated business choices. In the present worldwide commercial center, it isn't sufficient to assemble data and do the math; you should realize how to apply that data to genuine situations such that will affect conduct. In the program you will initially gain proficiency with the specialized skills, including R and Python dialects most usually utilized in data analytics programming and usage; Python Training in Chennai at that point center around the commonsense application, in view of genuine business issues in a scope of industry segments, for example, wellbeing, promoting and account.

 
At 25 December 2019 at 21:16 , Blogger easylearn said...


Wondeful post,very well explained.Thanks for sharing,extremly easy to understand.Python is higly expressive prograaming language.These days all IT industries suggest one to take course on python.
Best Python Training in BTM Layout

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home