Q.what is c programing ? Explain few them.. 

ans=C programing is a general purpose ,procedural,imperative computer programing language devolved in Dennis M. Rithie at the the Telephone Laboratories to develop the UNIX operating system . C is the most widely used computer language .It keeps fluctuating at number one scale of popularity along with Java programing language,which is also equally popular and most widely used modern software programs.

                                                                  C programing language is a MUST for student and working professionals to become a greet software Engineer specially when they working in Software development domain . 

$ some characteristic of c:

 1.Easy to learn 

2.Structured language

3.It produces efficient programs

4.It can handle low -level activities

5.It can be complied on a variety of computer platforms

$some fact in C language:

  1. C was invented to write an operating system called UNIX.
  2. C is a successor of B language which was introduced around the early 1970s.
  3. The language was formalized in 1988 by American national standard institute (ANSI).
  4. The UNIX OS was totally written in C.
  5. Today C is the most widely used and popular system programing language.

 //Hello world in c programing:

    *..the first program in c ,output hello world,below that:

#include<stdio.h>

//get standard input output

Int main(){

//is called main function and it is where the first code starts being run in a C program

//my first program in c

printf(“Hello world! \n”);

//is print display text in this case “Hello world”,with a new line (\n) at the end

return  0;

//did not computer in run time in problem

}

$ Application of C programing:

C was initially used for system development work ,particularly the programs that make-up the operating system C was adopted as a system development language because it produces code that runs nearly as fast as the code written in assembly language.

1.Operating system 

2.language compilers 

3.Assemblers

4.Text editors

5.Print spooleers 

6.Network drivers

7.Modern programs

8.Databases

9.Utilities

$ A c programe  basically consists of the following parts :

1.preprocessor commands

2.Function 

3.Variables 

4.Statement and Expressions

5.Comments

$C data type:

#there are three data type:

1.basic data type

2.derived data type:

3.user defined data type

1.basic data type:

A.integer data (int) it store integer value in 2 bytes to 4 bytes.

B. floating data(float) it store decimal number in 4 bytes.

C .character data(char) it store single character in 1 bytes.

D .double :it is used to store decimal number with double precision.

It store data 4 bytes to 8 bytes.

2.derived data type:

 A .Array:an array is stored is an ordered sequence of finite data items of the same data type that share a common name.

B .pointers:a pointers is special type of variable used to hold the address of another variable.

C .Function:A function is a block of code,it one or more statement pass in parameter that can work.

D.string:it store character array.

3.user defined data type :

1.structures:(struct) A structure is a collection of different data type items stored in a contiguous memory allocation.

2.Unions:(union) a union  is similar to the struct data type but it has large data type memory allocation

3.Enumeration:(enum) it store data type that consist of integral constant.      

One thought on “Q.what is c programing ? Explain few them.. 

Leave a comment

Design a site like this with WordPress.com
Get started