Introduction to C Programming and First C Program | C Programming Tutorials

Introduction to C Programming and First C Program | C Programming Tutorials


welcome to C programming tutorials let’s
start with the first lecture introduction to C programming in this
lecture we will be studying what is C programming and how to run first C
program c programming sees a procedure oriented
programming language developed in 1972 at AT&T Bell Laboratories by a famous
American computer scientist Dennis Emery M Ritchie so you will be asking why C it
produces a code that runs nearly fast as the code written in assembly language
assembly language was developed for microprocessor while C is download for
more advanced programming and make programming more easy to understand and
learn the fact is that UNIX operating system was fully developed in C
programming even UNIX application for also developed in the same language a C
program can vary from three lines to a millions of lines this three lines can
be a simple hello world program and it should always be written with the
extension dot C to be a good programmer one should learn C programming to start
his career so let’s start with the configuration and installation to run
the first C program you’ll be needing a software called as the coding blocks
mini GW that is a simple GCC compiler and an operating system like a Windows
10 so let’s start with the installation of this tools so let’s start with the
installation of code block software go to your chrome browser and type
called block and do a Google search on it
see the first link dot o-r-g click on the that link you can see alt is written
that it’s an open-source software cross-platform free for C C++ and fought
in Heidi click on the downloads yeah they have three version download the
binary release download the source code retried source code from SVN so we will
be downloading the binary release here we have five to six versions of core
blocks but we will be downloading the mingw as earlier said mingw is a
compiler GCC compiler so you can see you it’s taking me three minutes to download
it i will just cancel this because i have already downloaded the software
let’s start with the installation of code block software double click on this yeah is a setup for
core block software click on the next click on I agree no need to change is
over you just say next the destination prop will be same as the sea park click
on install do you want to run code blocks now
straightaway see no then click on next and finish come on the desktop and run the core
Blox software so you can see oh you’re the GCC compiler Ming GW is detected or
you click on the GNU GCC compiler and set as it default and click on okey one
screen select the option create a new project click on the console application
click on go next here there are two options C and C++ we will select the C
option as we are learning C programming so my project name will be a simple
hello world program my destination will be my USB any simple USB Drive okay
click on OK oh you don’t no need to worry about this
CBP its code block project extension click on next and then finish click on
the source or you’re in the management tab click on the main C click on built
and compile current file so you can see that I have 0 errors 0 warnings and 0
minutes and 1 second to run the project so I will run it on the console this there is the hello world program most
common advantages of C programming is most commonly spread language so almost
every platform has C compiler many languages are derived directly or
indirectly from C so even if you are not using it directly knowing C has
when learning several other languages like Java Python PHP C++ mid-level
language that is it is closer to the way a process of work than the modern
programming language so it will be fast and efficient even with a poor compiler
so the disadvantages of using a C programming language is that harder to
learn than the modern programming languages because it’s designed
prioritize was to be efficient for a processor not easy for a programmer
harder to master because it lacks most of the features of the modern
programming language such as the object-oriented programming concepts
many recent libraries and software tools do not provide C interface because it
has superseded by object-oriented languages like C++ and scripting
languages like Python thanks for learning with us subscribe and press the
bell icon so you never miss an update like share and comment do follow us on
Facebook Instagram and Twitter linked in the description

Leave a Reply

Your email address will not be published. Required fields are marked *