Latest News
Loading...

Tuesday 29 December 2015

Learn C Language (Part I)



1. C language is a building block for many other currently known languages.
C language has variety of data types and powerful operators. Due to this, programs written in C language are efficient, fast and easy to understand.
2. C is highly portable language. This means that C programs written for one computer can easily run on another computer without any change or by doing a little change.
3. There are only 32 keywords in ANSI C and its strength lies in its built-in functions. Several standard functions are available which can be used for developing programs.
4. Another important advantage of C is its ability to extend itself. A C program is basically a collection of functions that are supported by the C library this makes us easier to add our own functions to C library. Due to the availability of large number of functions, the programming task becomes simple.
5. C language is a structured programming language. This makes user to think of a problem in terms of function modules or blocks. Collection of these modules makes a complete program. This modular structure makes program debugging, testing and maintenance easier.
And some other unmentioned advantages which I personally like most is, C language has better hardware interaction. C language is vastly used to build drivers of hardware. (I know now a days, drivers are useless as system detects on his own ðŸ˜‰ )
Mostly what you will find on internet is that C language is easy to learn, Well its a little bit harder in comparison of other languages. And also have a little bit harder syntax. But once you learn and practice, The Ground Is Yours :)
So lets get into some History Of C language,
“”
C is a general-purpose language which has been closely associated with the UNIXoperating system for which it was developed – since the system and most of the programs that run it are written in C.
Many of the important ideas of C stem from the language BCPL, developed by Martin Richards. The influence of BCPL on C proceeded indirectly through the languageB, which was written by Ken Thompson in 1970 at Bell Labs, for the first UNIX system on a DECPDP-7. BCPL and B are “type less” languages whereas C provides a variety of data types.
In 1972 Dennis Ritchie at Bell Labs writes C and in 1978 the publication of The C Programming Language by Kernighan & Ritchie caused a revolution in the computing world.
In 1983, the American National Standards Institute (ANSI) established a committee to provide a modern, comprehensive definition of C. The resulting definition, the ANSI standard, or “ANSI C”, was completed late 1988.
Rough Guide to Programming Languages is available on-line for those of you that are interested.
“” (Source: https://www.le.ac.uk/users/rjm1/cotter/page_06.htm)

C language Data Types:

Unlike the other languages, most of them, you have to declare data type before creating each variable. So here are the data types of C language:
  • int (Integer) :: Integer data type is used to define integer numbers.
  • float :: Float is used to define floating point numbers.
  • double ::  Double is used to define BIG floating point numbers. It reserves twice the storage for the number. On PCs this is likely to be 8 bytes.
  • char (Character) :: Char defines character.
So far we’ve learned some basic aspects of C language. In our next part of this series, we will learn about some operations and operators in C language. Stay Tuned!

C Language Editor And Compiler:

Okay so till I post second part of the series, keep ready your editor and compiler, I’ll recommend to use Dev C++ 5.8.3,
Here’s the Link To Download one: Dev C++ 5.8.3 (44.8 MB).

airdropsplanet

Hello! Its me ~Alpha.im currently learning tons of programming languages and expoilting pentesting etc. I will share all the tricks tips ebooks courses tutorials tools I know .

0 comments:

Post a Comment

 

Copyright @ 2016 Elite Hackers.

Designed by Alpha