Introduction to 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 »