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

THE BEST BRAIN TRAINING APPS FOR ANDROID

THE BEST BRAIN TRAINING APPS FOR ANDROID Elevate - Brain Training Elevate is a brain training program designed to improve attention, speaking skills, processing speed, memory, math skills, and more. Each person is provided with his or her own personalized training program that adjusts over time to maximize results. The more you train with Elevate, the more you’ll improve critical cognitive skills that are designed to boost productivity, earning power, and self-confidence. Users who train at least 3 times per week have reported dramatic gains and increased confidence. FEATURES * 35+ brain games for critical cognitive skills like focus, memory, processing, math, precision, and comprehension * Detailed performance tracking * Personalized daily workouts that include the skills you need most * Adaptive difficulty progression to ensure your experience is challenging * Workout calendar to help you track your streaks and stay motivated Peak - Brain Training P

Introduction to Programming language C

Dennis Ritchie ( US) designed C programming language in 1972 at "AT & T's Bell laboratories". C has been often termed as " M iddle Leve l Language " . Programs written in C are very efficient and fast. C is a general purpose structured powerful language. Features at a Glance: • C is highly portable language .This means that a C program written for one system can be run on another system with little or no modifications. • C's another striking feature is its ability to extend itself. We can add our own functions to the C library . • Writing a C program with user defined makes program more simple and easy to understand . • C - language has more data types ( except boolean operators ), operators and can take more variables than other languages. • C - language is a structured programming language that is  it has different modules and blocks . • C - language is used to develop graphics software . 2D and 3D graphics are also implemented using C.

Adding Dialogue Boxes IN HTML5 AND CSS3.

This post is about adding Dialogue Boxes in html. Here is the implementation of the logic. <!DOCTYPE html> <html> <head> <title>HTML dialog Tag</title> </head> <body> <!-- Simple pop-up dialog box, containing a form --> <dialog id="dialog"> <form method="dialog"> <h3> Hello</h3> <menu> <button id="close" type="reset">Close</button> </menu> </form> </dialog> <menu> <button id="click">Click Me</button> </menu> <script> (function() { var clickButton = document.getElementById('click'); var closeButton = document.getElementById('close'); var Dialog = document.getElementById('dialog'); // Update button opens a modal dialog clickButton.addEventListener('click', function() { Dialog.showModal(); }); // Form close button closes the dialog