C is general-purpose, structured programming language, developed by Denis Ritchie in 1972 at Bell lab USA. Its instructions consist of terms that resemble algebraic expressions, augmented by certain English keywords such as if, else, for, …
Read More »C Tutorial
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 …
Read More »How to Editing File In C Programming Language
To open a new file, first press Alt F then Enter key, File pull down will activated, select new and then press Enter key, the display will be change into a blank screen of text …
Read More »How to Save and Run program in C Programming Language?
Press Alt F, move the cursor to save, press Enter and then type file name with extension .C in given Text Box and press Enter to save the program. Running a program Press Alt R …
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. …
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 …
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 …
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. …
Read More »What is C character set?
C uses the uppercase letter A to Z, the lowercase letters a to z, the digits 0 to 9, and certain special characters as building blocks to form basic program elements ( e.g., constants, variables, …
Read More »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 …
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, …
Read More »What is Secondary Data Type?
1. Array: It is a collection of data of similar data type. e.g. Int num [5]; Reserve a sequence of 5 location of two bytes each for storing integers. 2. Pointer: Pointer is a variable …
Read More »What is Variables In C Programming Language?
The defined type of memory area where the value is stored is called variable. Variables are the data item whose values may vary during the execution of the program. A specific location or the address …
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 …
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 …
Read More »