Skip to main content

Lexicon of C programming language

This article introduces you to various components of C- language statements .
C-Tokens are the essential part of  a C-compiler . A token is an individual entity of a C - program.C-statements having keywords , Identifiers , Constants , Strings , Operators and special symbols are called C-tokens.

CHARACTER SET in C language includes alphabets (used to write C -statements and character constans) ,  digits  (used to assign numeric data) , special symbols (used for special purposes such as to create relational statements and assignment statements). There are 30 special symbols like <,>,<=,>=,== and many others and at last are white spaces.

KEYWORDS and IDENTIFIERS

  Every word in C - language is a keyword or an identifier. Keywords cannot be used as a variable name , these are reserved words. For example: auto , break , case , else , struct  etc.
While Identifiers refer to name of user-defined variables , arrays , functions (we will discuss about arrays and functions  later in next articles). Identifiers should not start from a digit and are case - sensitive. For example : pay , roll_no , s , S etc.

CONSTANTS

Constants refer to fixed values that the program may not alter . Constants can be of any of the basic data type.These uses secondary storage area. Some valid constants are : 52.7 , -43.4 , " Gimibits" , 'M' etc.

VARIABLES

A variable is a value that can change at any time. It is a memory location used to store a data value .
* A variable name should be carefully chosen by the programmer so that its use is reflected in the entire program.
* It contains name of a valid identifier .

For example : area , simple , std1 etc.
A declaration begins with data type, followed by name of one or more Variables . For example ,
          int roll_no,marks;

prev
next

Comments

Popular posts from this blog

Removing HTML Tags from string in C#

Hello friends, With this very first post of our new Blog GimiBits, we start our whole new journey contributing to information technology. Our First post is about the logic to remove the HTML tags from the given string with C# (C Sharp) programming language. Logic is very Simple to Implement, we take up a string and for its each index char we find the opening '<' braces and ignores the inside content until the closing '>' braces is not encountered and save to another char[] datatype. Here is a function based Implementation of the logic:  public string RemoveHtmlTags(string Html)         {             string content = Html;             char[] array = new char[content.Length];             int arrayIndex = 0;           ...

List Of Most Searched Topics On Google 2016

List Of Most Searched Topics On Google                                                                                                                               source Global Searches   1) Pokémon Go  2) iPhone 7   3) Donald Trump   4) Prince   5) Powerball   6) David Bowie   7) Deadpool   8) Olympics   9) Slither.io  1 0) Suicide Squad Global News   1) US Election  2) Olympics   3) Brexit   4) Orlando Shooting  5) Zika Virus   6) Panama Papers  7) Nice 8) Brussels  9) Dallas Shooting  10)...

15 BEST PHOTO EDITING APPS FOR ANDROID

There are various photo editing apps available on play store.But there are few apps that can make the most unflattering of images into pieces of art in a matter of few taps.From Amazing Photo Effects to Clicking Best                       Selfies,These Apps are Worth a Shot. 1. Adobe Photoshop Lightroom Bring Beautiful Images into light with adobe lightroom.powered by the magic ofadobe photoshop technology,lightroom for mobile enables you to craft and share professional quality images from smartphone to reality. Adobe has vastly improved their mobile offerings over the last year with Lightroom and Photoshop Express leading the charge in the photo editing apps department.Winner of 2015 Professional photographer hot one awards in the photo category app. They’re both more powerful than average and they both also sync to the desktop variants as long as you use the Adobe Creative Cloud. Individually, Lightroom can be u...