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 »

Structure of C Program

Every C program is made of function and every function consist of instructions called statement. Structure of C Program. #include //stdio.h is the header file main() // main function is the first function which is executed by a C program. All C statements are written within main function. { // All C statements. } Functions …

Structure of C Program 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 Identifiers?

Identifiers are names that are given to various program elements, such as variable, functions and arrays. Identifiers consist of letters and digits, in any order, except that the first character must be a letter.; Both upper- and lowercase letters are permitted, though common usage favors the use of lowercase letters for most types of identifiers. …

What is Identifiers? Read More »

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;  

What is Constants in C Programming Language?

There are some values which do not change during the execution of the program. These values are called constants. Constants are of fixed value that remain unchanged during the execution of a program, and are used in assignment of statements. Constants are stored in variables. Syntax of constant declaration: Const datatype var_name = value; Example …

What is Constants in C Programming Language? Read More »

What is Character constants In C Programming Language?

A character constant consists of a single digit or a single special symbol enclosed within a pair of single inverted commas. The maximum length of a character constant can be 1 character. e.g. –> ‘a’, ‘i’ , ‘5’, ‘=’. There are some character sequence constants which are used in C to represented special action, these …

What is Character constants In C Programming Language? Read More »

Scroll to Top