C Tutorial

C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. … This tutorial is designed for software programmers with a need to understand the C …

Description of C code window

Introduction to C Description of C code window 1. =: Interface to external programs. 2. File: File related option such as opening and saving file. 3. Edit: Cut,Copy,Paste operation. 4. Search: Find,Find & Replace operation. 5. Run: Compile and run the file currently loaded in the text editor. And debugging such as setting/clearing trace points can be performed from this menu. 6. Compile: The menu item compiles a …

Description of C code window Read More »

The components of C language

There are five main component of C language are: 1. The character set: Any alphabet ,digit or special symbol ,used to represent information is denoted by character. The character in C are grouped into four categories. 1 Letters A…Z and a…z 2 Digits 0,1,2,…..9 3 Special Symbol ~,`,!,@,#,$,%,^,&,*,(),.,<,>,?,/,”,:,;,{},[] 4 White Space blank space, Carriage return, form …

The components of C language Read More »

A sample of C language program

Example of C program to calculate area of circle: Explanation of above program : # is the preprocessor directive which commands that the content of file should be included at the time of compilation. < stdio.h> is the header file which contains all input and output functions like scanf(), printf() which are frequently used in c programs. main() is the first function which is executed …

A sample of C language program Read More »

What is C character set and keywords?

C language consists of some basic elements which are used to construct simple C statements. These elements include the C character set, identifiers, and keywords, data types, constants, variables and arrays, declaration, expressions and statements. We will see how these basic elements can be combined to form more comprehensive program components.

What is Primary Data Type?

1. Void Description: Used to specify empty set containing no values. Storage Space: 0 byte. Format: (void). Range of values: ______. 2. Character (Denoted as “char” in C programming language) Description: A character denotes any alphabet, digit or special symbol used to represent in formation and it is used to store a single character. Storage space: …

What is Primary Data Type? Read More »

Rules for constructing variables names In C Programming Language

There are some specific rules for constructing variable names in C language: (a) Variable name may be a combination of alphabet digits or underscores and its lengths should not exceed 8 characters, some compilers allow 40 characters also. (b) The first character must be an alphabet. (c) No comma, blank spaces are allowed in variable …

Rules for constructing variables names In C Programming Language Read More »

What is Variable declaration In C programming Language?

All the variables must be declared before their use. It does two things: (a) Tell the compiler what the variable name is. (b) Specify what type of data that a variable will hold. Syntax of variable declaration: data_type variable_name; Example of variable declaration: int i,j,k; char ch;