INTRO to C language.

Hello Everyone C is a very easy and simple language.

Let us start with it.

First of all, I will tell you that C is a high-level language, which developed by Dennis Ritchie, in 1972, in AT and T’s bell laboratory California

Now let’s talk about the levels of language

  • LOW-LEVEL
  • HIGH-LEVEL

Low-Level languages

To code in a low-level language, we need a good knowledge of binaries and how we can directly interact with hardware. Without knowledge of binaries and hardware, we couldn’t use a low-level language.

High-level languages

High-level languages are those languages which do not depend on any assembly language knowledge or we can say that a user does not need any knowledge of hardware connectivity via languages because a high-level language is developed that any user can use that without any deep knowledge of assembly language or can directly start writing code without much knowledge of drivers and all.

That’s the different thing that a low-level language is easily understood by computer or we can say the machine but a high-level language is easily understood by us that is why all the languages which are considered in programming are high-level.

Now let’s dig into a bit with C.
So in any language, We have fix words that represent something or we can say are already booked these words are known as KeyWords similarly we have 32 keywords in C or we call them reserved words.

Here is the list of Keywords in C
Auto double int struct
break else long switch
case enum register typedef
char xtern return union
const float short unsigned
continue for signed void
default goto sizeof volatile
do if static while

So now let’s see what kind of character C support or we can say what kind of symbols and letters we can use in writing expressions.
We can use any alphabets A,B,C ......Z or a, b, c........z
We can use Digits  .....-9,-8,-7,-6,-5,-4,-3,-2-1,0, 1, 2, 3, 4, 5, 6, 8, 9,......
and Symbols  ! @ # % ^ & * () _ + - = ; : ' " .......
NOTE:->

We can use any kind of symbol in C language except  Dollar sign ($) this sign is not supported in any expression or in any statement in C language.

Environment to write Code:-

So to run a C program you need to have GCC in your system and I would suggest you use Visual Studio Code as your text editor and run your code in via Command line. And if you got mess up with setting it in windows then you can use Code Block.

and in Linux we use command

gcc name_of_program.c

or

cc name_of_programc.c

To compile the code
and command

./a.out

to saw the Output of the program.

11 Comments

  1. My sⲣouse and I stumbled over here from a diffеrent page and thought I
    might check things out. I ⅼike ԝhat I see so now i
    am following you. Lοook forward to looking over
    your web page аgain.

    Liked by 1 person

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s