Showing posts with label C. Show all posts
Showing posts with label C. Show all posts

Monday 9 April 2018

Strings

A string is a sequence of characters. Any sequence or set of characters defined within double quotation symbols is a constant string. In C it is required to do some meaningful operations on strings they are :
* Reading string displaying strings.
* Combining or concatenating strings.
* Comparing string and checking whether they are equal.
* Extraction of a portion of a string.

Strings are stored in memory as ASCII codes of characters that make up the string appended with '\0' (ASCII value of null). Normally each character is stored in one byte, successive character are stored in successive bytes.


The last character is the null character having ASCII value zero.

Initializing Strings

  Following the discussion on character arrays, the initialization of a string must the following form which is simpler to one dimension array.
  char month1[ ] = { 'j' , 'a' , 'n' , 'u' , 'a' , 'r' , 'y'};
Then the string month is initializing to January. This is perfectly valid but C offers a special way to initialize strings. The above string can be initialized char month1 [ ]="January"; . The characters of the string are enclosed within a part of double quotes. The compiler takes care of string enclosed within a pair of a double quotes. The compiler takes care of storing the ASCII codes of characters of the string in the memory and also stores the null terminator in the end.

/* String.c string variable */
#include<stdio.h>
main( )
{
char month[15];
printf("Enter the string");
gets(month);
printf("The string entered is %s",month);
}

In this example string is stored in the character variable month. The string is displayed in the statement.
printf("The string entered is %s",month);

It is one dimension array. Each character occupies a byte. A null character(\0) that has the ASCII value 0 terminates the string. The table shows the storage of string January in the memory recall that \0 specifies a single character whose ASCII  value is zero.



Character string terminated by a null character '\0'.

A string variable is any valid C variable name and is always declared as an array. The general form of declaration of a string variable is
  Char string_name[size];
The size determines the number of characters in the string name.


Example :
  char month[10];
  char address[100];
The size of the array should be one byte more than the actual space occupied by the string since the compiler appends a null character at the end of the string.

Reading String from the Terminal
  The function scanf with %s format specification is needed to read the character string from the terminal.

Example :
 Char address[15];
 scanf("%s",address);

Scanf statement has a drawback it just terminates the statement as soon as it finds a blank space , suppose if we type the string new york then only the string "new" will be read and since there is a blank space after word "new" it will terminate the string.

Note that we can use the scanf( ) without the ampersand symbol before the variable name. In many applications it is required to process text by reading an entire line of next from the terminal.

The function getchar( ) can be used repeatedly to read a sequence of successive single characters and store it in the array.

We cannot manipulate strings since C does not provide any operators for string. For instance we cannot assign one string to another directly.

For example :
 String="xyz";
String1=string2;
Are not valid. To copy the chars in one string to another string we may do so on a character to character basis.


Writing String to Screen
  The printf statement along with format specifier %s to print strings on to the screen. The format %s can be used to display an array of characters that is terminated by the null character. For example : printf("%s",name); can be used to display the entire contents of the array name.

Arithmetic Operations on Characters
 We can also manipulate the characters as we manipulate numbers in C language. Whenever the system encounters the character data it is automatically converted into an integer value by the system. We can represent a character as an interface by using the following method.
                 X='a';
               printf("%d\n",x);
Arithmetic operations can also be performed on characters. For example x='z'-1; is a valid statement. The ASCII value of 'z' is 122 the statement therefore will assign 121 to variable x.

It is also possible to use character constant in relational expressions. For example : ch>'a' && ch <='z' will check whether the character stored in variable ch is a lower case letter.

Monday 2 April 2018

Arrays

The C language provides a capability that enables the user to define a set of ordered data items as an array.

Suppose we had a set of grades that we wished to read into the computer and suppose we wished to perform some operations on these grades, we will quickly realize that we cannot perform such an operation until each and every grade has been entered since it would be quite a tedious task to declare each and every student grade as a variable especially since there may be a very large number.
    In C we can define variable called grades, which represents not a single value of grade but a entire set of grades. Each element of the set can then be referenced by means of a member called as index number of subscript.

Declaration of Arrays
  Like any other variable arrays must be declared before they are used. The general form of declaration is :
   type variables-name[50];
 The type specifies the type of the elements that will be contained in the arrays, such as int, float or char and the size indicates the maximum number of elements that cane stored inside the array. For example :
   float height[50];
 Declares the height to be an array containing 50 real elements. Any subscripts  0 to 49 are valid. In C the array elements index or subscript begins with number zero.
  So height [0] refers to the first element of the array. (For this reason, it is easier to think of it as referring to element number zero, rather than as referring to the first element).


Initialization of Arrays
  We can initialize the elements in the array in the same way as the ordinary variables when they are declared. The general form of initialization of arrays is :
   type array_name[size] = {list of values};
The values in the list care separated by commas, for example the statement
  int number[3] = {0,0,0};
Will declare the array size as a array of size 3 and will assign zero to each element.
   How to access the array element can be understood by the following program :
/* Program to count the number of positive and negative numbers*/

#include<stdio.h>
void main( )
{
int a[50], n, count_neg=0, count_pos=0,I;
printf("Enter the size of the arrays\n");
scanf("%d",&n);
printf("Enter the elements of the array\n");
for(I=0;I<n;I++)
scanf("%d",&a[I]);
for(I=0;I<n;I++)
{
if(a[I] < 0)
count_neg++;
else
count_pos++;
}
printf("There are %d negative numbers in the array\n",count_neg);
printf("There are %d positive numbers in the array\n",count_pos);
}

Multidimensional Arrays
  Often there is a need to store and manipulate two dimensional data structure such as matrices and tables. Here the array has two subscripts. One subscripts denotes the row and the other the column.
    The declaration of two dimension arrays is as follows :
       data_type array_name[row_size][column_size];
        int m[10][20];
Here m is declared as a matrix having 10 rows (numbered from 0 to 9) and 20 columns (numbered 0 through 19). The first element of the matrix is m[0][0] and the last row last column is m[9][19].


Elements of Multidimension Arrays
  A 2 dimensional array marks[4][3] is shown below. The first element is given by marks[0][0] contains 35.5 and second element is marks[0][1] and contains 40.5 and so on.


Initialization of Multidimensional Arrays

 Like the one dimension arrays, 2 dimension arrays may be initialized by following their declaration with a list of initial values enclosed in braces.

Example :
   int table[2][3] = {0,0,01,1,1};
Initializes the elements of first row to zero and second row to 1. The initialization is done row by row. The above statement can be equivalently written as
  int table[2][3] = { {0,0,0},{1,1,1}};
/* Example : Program to add two matrices & store the results in the  3rd matrix */

#include<stdio.h>
#include<conio.h>
void main( )
{
int a[10][10], b[10][10], c[10][10], i, j, m, n, p, q;
clrscr( )
{
printf("enter the order of the matrix\n");
scanf("%d%d",&p, &q);
if(m= =p && n = = q)
{
printf("Matrix can be added\n");
printf("enter the elements of the matrix a");
for(i=0;i<m;i++)
for(j=0;j<n;j++)
scanf("%d",&a[i][j]);
printf("enter the elements of the matrix b");
for(i=0;i<m;i++)
for(j=0;j<n;j++)
c[i][j]=a[i][j]+b[i][j];
printf("The matrix c is ");
 for(i=0;i<m;i++)
{
 for(j=0;j<n;j++)
printf("%d"\t,c[i][j]);
printf("\n");
}
}
getch( );
}

Union

Unions like structure contain members whose individual data types may differ from one another. However the members that compose a union all share the same storage area within the computers memory where as each member within a structure is assigned its own unique storage area. Thus unions are used to observe memory. They are useful for application involving multiple members. Where values need not be assigned to all the members at any one time. Like structure union can be declared using the keyword union as follows :
  union item
  {
   int m;
   float p;
   char c;
   }
   code;

This declares a variable code to type union item. The union contains three members each with a different data type. However we can use only one of them at a time. This is because if only one location is allocated for union variable irrespective of time. The compiler allocates a piece of storage that is large enough to access a union member we can use the same syntax that we use to access structure members. That is-
 code.m
 code.p
 code.c
are all valid member variables.

Structure

Arrays are used to store large set of data and manipulate them but the disadvantage is that all the elements stored in an array are to be of the same data type. If we need to use a collection of different data type items it is not possible using an array. When we require using a collection of different data item of different data types we can use a structure. Structure is a method of packing data of different types. A structure is a convenient method of handling a group of related data items of different data types.
 structure definition:
 struct tag_name
 {
 data type member 1;
 data type member 2;
 ..................;
 ...................;
 };

Example :
  struct lib_books
  {
  char title[20];
  char author[15];
  int pages;
  float price;
  };

The keyword struct declares a structure to hold the details of four fields namely title, author pages and price. These are members of the structures.Each member may belong to different or same data type. The tag name can be used to define objects that have the tag names structure. The structure we just declared is not a variable by itself but a template for the structure.
         We can declare structure variables using the tag name anywhere in the program.

For example the statement,
  struct lib_books book1,book2,book3;
  declares book1,book2,book3 as variables of type struct lib_books each declaration has four elements of the structure lib_books.The complete structure declaration might look like this

struct lib_books
{
char title[20];
char author[15];
int pages;
float price;
};
struct lib_books, book1, book2, book3;

Giving values to members
 As mentioned earlier the members themselves are not variables they should be linked to structure variable in order to make them meaningful members. The link between a member and a variable is established using the member operator'.' which is known as dot operator or period operator.
   For example :
    Book!.price
Is the variable representing the price of book1 and can be treated like any other ordinary variable. We can use scanf statement to assign values like

scanf("%s", book1.file);
scanf("%d",&book1.pages);
    OR
we can assign variables to the members of book1
strcpy(book1.title, "basic");
strcpy(book1.author, "Irawen");
book1.pages = 250;
book1.price = 28.50;

 

Sunday 1 April 2018

The case Control Structure

Switch Statement
 The switch statement cause a particular group of statements to be chosen from several available groups. The selection is based upon the current value of an expression that is include within the switch statement.

The form of switch statement is
 switch (integer expression)
 {
  case constant 1:
  do this;
  case constant 2 :
  do this;
  case constant 3 :
  do this;
  default:
  do this;
  }

Example:-
int main ( )
{
int num = 2;
switch (num +2)

case 1:
printf("case 1 : Value is : %d", num);
case 2:
printf("Case 1: Value is : %d", num);
case 3 :
printf("Default : Value is : %d", num);
default :
printf("Default : Value is : %d", num);
}
return 0;
}
   

The Break and Continue Statement

The Break Statement :-
   The keyword break allows us to jump out of a loop instantly without waiting to get back to the conditional test. When the keyword break is encountered inside any C loop, automatically passes to the first statement after the loop. For e.g. the following program is to determine whether a number is prime or not

 Logic : To test a number is prime or not, is to divide it successively by all numbers from 2 to one less than itself. If the remainder of any of the divisions is zero, the number is not a prime.

Following program implements this logic
  main( )
  {
   int num i;
   printf("Enter a number");
   scanf("%d",&num);
   i = 2;
   while (i <= num-1)
   {
     if(num% i = = 0)
      {
        printf("Not a prime number");
        break;
      }
     i++;
   }
   if(i == num)
   printf("Prime number");
 }

The Continue Statement:-
   The keyword continue allows us to take the control to the beginning of the loop bypassing the statements inside the loop which have not yet been executed. When the keyword continue is encountered inside any C loop control automatically passes to the beginning of the loop.

 For example
 main( )
 {
  int i,j;
  for(i=1; i<=2; i++)
  {
    for(j=1; j<=2; j++)
     {
       if(i = = j)
       continue;
       printf("%d%d", i,j);
      }
    }
  }

The output of the above program would be.........
 12
 21 

When the value of i equal to that of j, the continue statement takes the control to the for loop (inner) bypassing rest of the statement pending execution in the for loop (inner).

Loop Control Structures

These are three methods by way of which we can repeat a part of a program in C programming.
1. Using a for Statement
2. Using a while Statement
3. Using a do-while Statement

The While Loop (pre-test Loop)
   The general form of while is as shown below :
     initialize loop counter ;
     while (test loop counter using a condition)
     { 
         do this;
         and this;
         increment loop counter;
     }
The parentheses after the while contains so long as this condition remains true all statements within the body of the while loop keep getting executed repeatedly for e.g.
  /* calculate simple interest for 3 sets of p, n and r */
     main( )
     {
      int p, n, count;
      float r, si;
      count = 1;
      while(count <= 3)
       {
        printf("Enter values of p, n and r");
        scanf("%d%d%f", &p,&n,&r);
        si = p*n*r/100;
        printf("simple interest = Rs. %f" ,si);
        count = count +1;
       }
     }

The while construct consists of a block of code and condition. The condition is evaluated, and if the condition is true, the code within the block is executed. This repeats until the condition becomes false. Because while loops check the condition before the block is executed, the control structure is often also known as a pre-test loop. Compare with the do while loop, which tests the condition after the loop has executed.
 For example, in the C programming language (as well as Java  and C++, which use the same syntax in this case), the code fragment
  x = 0;
  while <x < 5)
     {
         printf("x = %d\n", x);
         x++
     }
first checks whether x is less than 5, which it is, so then the {loop body} is entered, where the printf function is run and x is incremented by 1. After completing all the statements in the loop body, the condition, (x < 5), is checks again, and the loop is executed again, the process repeating until the variable x has the value 5.
  Note that it is possible, and in some cases desirable, for the condition to always evaluate to true, creating an infinite loop. When such a loop is created intentionally, there is usually another control structure (such as a break statement) that controls termination of the loop.


The do-while Loop (Post-test loop)
  The do-while loop takes the following form
   do
   {
     this;
     and this;
     and this;
     and this;
   } while ( this condition is true);

There is a minor difference between the working of while and do-while loops. The difference is the place where the condition is tested. The while tests the condition before executing any of the statements within the while loop. As against this the do-while tests the condition after having executed the statements within the loop. 
        
                           The do while construct consists of a block of code and a condition. First, the code within the block is executed, and then the condition is evaluated. If the condition is true the code within the block is executed again. This repeats until the condition becomes false. Because do while loops check the condition after the block is executed, the control structure is often also known as a post-test loop. Contrast with the while loop, which tests the condition before the code within the block is executed
   
         It is possible, and in some cases desirable, for the condition to always evaluate to true, creating an infinite loop. When such a loop is created intentionally, there is usually another control structure(such as a break statement) that allows termination of the loop.
            Some languages may use a different naming convention for this type of loop. For example, the Pascal language has a "repeat until" loop, which continues to run until the control expression is true (and then terminates) - whereas a "do-while" loop runs while the control expression is true (and terminates once the expression becomes false).

The for loop
  The general form of for statement is as under :
    for(initialize counter; test counter, increment counter)
    {
      do this;
      and this;
      and this;
    }

Now let us write the simple interest problem using the for loop .

 /* Calculate simple interest for 3 sets of p, n and r */
  main( )
  {
    int p,n,count;
    float r, si;
    for(count=1; count <=3; count = count + 1)
     { 
       printf("Enter values of p, n and r");
       scanf("%d%d%f",&p, &n, &r);
       si = p*n*r / 100;
       printf("Simple interest = Rs. %f" , si);
      }
    }
  

Control Structure in C

The decision control structure in C can be implemented using
 1. The if Statement 
 2. The if - else Statement
 3. The Nested if - else Statement

The if Statement

  The general form of it statement looks like this :
   
     if(this condition is true)
            execute this statement;

The if statement by itself will execute a single statement or a group of statement when the condition following if is true.
  
The simple example of a if statement is :
    if(varName = = 20)
      printf("Value of the variable is 20");

We can use the block to specify the statement to pre executed if the given condition is true.
 if(varName = = 20)
 {
    printf("Value of the variable is 20");
    printf("Print what ever you want !!!");
 }

The if - else Statement

  The if statement by itself will execute a single statement or a group of statements when the condition following if is true. It does nothing when the condition is false. If the condition is false then a group of statements can be executed using else statement.
The following program illustrates this
 /* Calculation of gross salary */
   main( )
   {
    float bs, gs, da, hra;
    printf("Enter basic salary");
    scanf("%f", &bs);
    if(bs<1500)
    { 
          hra = bs * 10/100;
          da = bs * 90/100;
     }
    else
     {
           hra = 500;
           da = bs * 98/100;
      }
      gs = bs+hra+da;
      printf("gross salary = Rs. /.f" , gs);
     }

The Nested if - else Statement

   It we write an entire if - else construct within the body of the if statement or the body of an else statement. This is called nesting of if . For example

    if(condition)
    {
         if(condition)
          {
             do this;
          }
          else
          {
            do this;
            and this;
          }
         else
             do this;
    }

Data Types in C Language

A programming language is proposed to help programmer to process certain kinds of data and to provide useful output. The task of data processing is accomplished by executing series of commands called program. A program usually contains different types of data types (integer, float, character etc.) and need to store the values being used in the program. C language is rich of data types. A C programmer has to employ proper data type as per his requirements.

   C has different data types for different types of data and can be broadly classified as:
      1. Primary data types
      2. Secondary data types

Primary data types consists following data types.  

Data Types in C



Integer type :-
  Integers are whole numbers with a range of values, range of values are machine dependent. Generally an integer occupies 2 bytes memory space and its value range limited to -32768 to +32768 (that is, -2 to the power 15 to + 2 to the power 15 -1). A signed integer use one bit for  storing sign and rest 15 bits for number.

 To control the range of numbers and storage space, C has three classes of integer storage namely short int, and long in. All three data types have signed and unsigned forms. A short int requires half the amount of storage than normal integer. Unlike signed integer, unsigned integers are always positive and use all the bits for the magnitude of the number. Therefore  the range of an unsigned will be  form 0 to 65535. The long integers are used to declare a longer range of value and it occupies 4 bytes of storage space.

Syntax : int <variable name>;like
int num 1;
short int num 2;
long int num 3;
Example : 5,6,100,2500

Integer Data Type Memory Allocation



 Floating Point Types :
  The float data type is used to store fractional numbers (real number) with 6 digits of precision. Floating point numbers are denoted by the keyword float. When the accuracy of the floating point number is insufficient, we can use the double to define the number. The double is same as float but with longer precision and takes double space (8 bytes) than float. To extend the precision further we can use long double which occupies 10 bytes of memory space.
Syntax : float <variable name>; like
float num 1;
double num 2;
long double num 3;
Example : 9.125, 3.1254

Floating Point Data Type Memory Allocation


 Character Type :
  Character type variable can hold a single character. As there are singed and unsigned int (either short or long), in the same way there are signed unsigned chars; both occupy 1 bytes each, but having different ranges. Unsigned character have values between 0 and 255, signed characters have values from -128 to 127.

Syntax : char <variable name>; like

char ch = 'a';

Example : a,b,g,S,j.

Void Type :
  The void type has no values therefore we cannot declare it as variable as we did in case of integer and float.
   The void data type is usually used with function to specify its type.Like in our first C program we declared we declared "main( )" as void type because it does not return any value. The concept of returning values will be discussed in detail in the C function hub.


Secondary Data Types 

    Array in C programming
          An array in C language is a collection of similar data-type, means an array can hold value of a particular data type for which it has been declared. Arrays can be created from any of the C data-types int,............. .

   Pointers in C programming
         In this blog we are going to discuss what pointer is and how to use them our C program. Many C programming learner thinks that pointer is one of the difficult topic in C language but its not......... .

  Structure in C programming
         We used variable in our C program to store value but one variable can store only single piece information (an integer can hold only one integer value) and to store similar type of values we had to declare.....

User defined type declaration
       C language supports a feature where user can define an identifier that characterizes an existing data type. This user defined data type identifiers can later be used to declare variables. In short its purpose is to redefine the name of an existing data type.

Syntax : typedef <type> <identifier>; like

typedef int number;
  
Now we can use number in lieu of int to declare integer variable. For example : "int x1" or "number x1" both statement declaring an integer variable. We have just changed the default keyword "int" to declare integer variable to "number".


Saturday 31 March 2018

Variables

A variable is a value that can change any time. It is a memory location used to store a data value. A variable name should be care fully chosen by the programmer so that it use is reflected in a useful way in entire program. Variable names are case sensitive.
Example of variable names are
  sun
  Number
  Salary
  Emp_name
  Average1
  
Any variable declared in a program should confirm to the following-
1. They must always begin with a letter, although some systems permit underscore as first character.
2. The length of a variable must not be more than 8 characters.
3. White space is not allowed and
4. A variable should not be a keyword
5. It should not contain any special characters.

Example of invalid names are
123
(area)
6th
%abc

Constants

A constant value is the one which does not change during the execution of a program. C supports several types of constants.
 1. Integer constants
 2. Real constants
 3. Single character constant
 4. String constants

Integer Constants
 An integer constant is a sequence of digits. There are 3 types of integers namely decimal integer, octal integers and hexadecimal integers.
  1. Decimal Integers consists of a set of digits 0 to 9 preceded by an optional + or -sign. Spaces, commas and non digit characters are not permitted between digits. Example for valid decimal integer constants are
123
-31
0
562321
+78

Some examples for invalid integer constant are
15 750
20,000
Rs. 1000


2. Octal Integer constant consists of any combination of digits from 0 through 7 with a O at the beginning.Some examples of octal integers are
O26
O
O347
O676

3. Hexadecimal Integer constants is preceded by OX or Ox, they may contain alphabets from A to F or a to f. The alphabets A to F refers to 10 to 15 in decimal digits. Example of valid hexadecimal integers are-
OX2
OX8C
OXbcd
Ox

Real Constants
   Real constants consists of a fractional part in their representation.Integer constant are inadequate to represent quantities that vary continuously. These quantities are represented by numbers containing fractional parts like 26.082.
Example of real constants are
0.0026
-0.97
435.29
+487.0
Real numbers can also be represented by exponential notation.

Single Character Constants
  A single Character constant represent a single character which is enclosed in a pair of quotation symbols.
Example for character constant are
'5'
'x'

String Constants
   A string constants is a set of character enclosed in double quotation marks. The character in a string constant sequence may be a alphabet, number, special character and blank space. Example of string constants are-
"IRAWEN"
"1234"
"God Bless"
"!....?"

Backslash Character Constant [Escape Sequence]
 Backslash character constants are special character used in output functions. Although they contain two characters they represent only one character.
For example "\n" is the new line character constant. and
    "\t" is to give a tab space for formatting.

Character Set, Keywords and Identifiers

Character Set
  The character set in C language can be grouped into the following categories.
   1. Letters
   2. Digits
   3. Special characters
   4. White spaces

White spaces are ignored by the compiler until they are a part of string constant.White space may be used to separate words, but are strictly prohibited while using between characters of keywords or identifiers.

C Character-set table



Special Characters



Keywords and Identifiers
  Every word in C language is a keyword or an identifier. Keywords in C language cannot be used as a variable name. They are specifically used by the compiler for own purpose and they serve as building blocks of a C program.
  
The following are the keyword set of C language.



Some compilers may have additional keywords.
  
Identifiers refers to the name of user-defined variables, array and functions. A variables should be essentially a sequence of letters and or digits and the variable name should begin with a character.
  
  Both uppercase and lowercase letters letters are permitted. The underscore character is also permitted in identifiers.

Saturday 24 March 2018

What is C languages ?

C is a very powerful and widely used language. It is used in many scientific programming situations. It forms (or is the basis for) the core of the modern languages Java and C++. It allows you access to the bare bones of your computer.


High Level Language:-
  BASIC :
      Beginner's all-purpose symbolic instruction code
      Used only for small general purpose application
  COBOL :
       Common Business Oriented Language
       Used for business applications only
  FORTRAN :
       Formula Translation
       Used only for engineering applications
  PASCAL :
       These specific language for specific software
       If we want to go to America we must know English Language


Low Level Language:-
  It is a machine level language
  Understandable for computer in 0 1 0 1 0 1 form
  In earlier days this language is used for giving commands computer in 0101010100101010101 format.




Middle Level Language :-
  Middle-level language (MLL) is a computer programming language that interacts with the abstraction layer of a computer system.
  It has both features of HLL and LLL
  It translates the human readable language into Machine language and vice versa
  It not only used to write application software but also system software and communication with hardware.


Basic Knowledge about Software

What is Computer ?
  → Computer is an electronic device that takes input, process it and gives output.

What is 0 and 1 ?
  → There is nothing like 0 and 1 in computer.There is no physical significance of 0 and 1
  → Any information can be encoded as a sequence of 0 and 1.

How 0 and 1 get stored in memory ?
What is Hardware ?
 → Hardware is a comprehensive term for all of the physical parts of a computer, as distinguished from the data it contains or operates on, and the software that provides instruction for the hardware to accomplish tasks
    Hardware is anything which is tangible.

What is a File ?
   File is a data bundle.


What is software ?
  Application Software
  System Software

Program and Process
    Set of instruction is called Program
    Active state of a program is called Process

Operating System
   It is a system software
   Examples are DOS, windows xp, windows vista, windows 7 windows 8, Solaris, Macintosh, Linux, ubuntu etc.
It provides interface between user and machine.
Acts as a manger of the computer system
It does process management, memory management, file management.

Execution of Program


Software develop in C language


Why C language is Important ?

Why C language is so important ?
  • Worth to know about C language
              - Oracle is written in C
              - Core libraries of android are written in C
              - MySQL is written in C
              - Almost every device driver is written in C
              - Major part of web browser is written in C
              - Unix operating system is developed in C
              - C is the world's most popular programming language
   
  • For Students  
              - C is important to build programming skills
              - C covers basic features of all programming language 
              - C campus recruitment process
              - C is most popular language for hardware dependent programming
             
  • History of C language
            It is Developer of BCPL
            Basic Combined Programming Language
            It is develop in 1966


Developer of B language
It is develop in 1969.Also developer of UNIX operating system 
He is also developed first master level chess called Belle in 1980.

Developer of C language in 1972.
At AT & T's Bell LABs, USA
Co-developer of UNIX operating system


Popular Posts

Categories

AI (27) Android (24) AngularJS (1) Assembly Language (2) aws (17) Azure (7) BI (10) book (4) Books (117) C (77) C# (12) C++ (82) Course (62) Coursera (179) coursewra (1) Cybersecurity (22) data management (11) Data Science (94) Data Strucures (6) Deep Learning (9) Django (6) Downloads (3) edx (2) Engineering (14) Excel (13) Factorial (1) Finance (5) flutter (1) FPL (17) Google (19) Hadoop (3) HTML&CSS (46) IBM (25) IoT (1) IS (25) Java (92) Leet Code (4) Machine Learning (44) Meta (18) MICHIGAN (5) microsoft (3) Pandas (3) PHP (20) Projects (29) Python (747) Python Coding Challenge (219) Questions (2) R (70) React (6) Scripting (1) security (3) Selenium Webdriver (2) Software (17) SQL (40) UX Research (1) web application (8)

Followers

Person climbing a staircase. Learn Data Science from Scratch: online program with 21 courses