C PROGRAMME
By
Mr. V. VEERANAN
B.Sc. Computer Science., Dip. In Yoga
Learn C
C is a general-purpose programming language,
developed in 1972, and still quite popular.
C is very powerful; it has been used to develop
operating systems, databases, applications, etc.
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
The Father of Software
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
What is C?
C is a general-purpose programming language
created by Dennis Ritchie at the Bell Laboratories in 1972.
It is a very popular language, despite being old.
C is strongly associated with UNIX, as it was
developed to write the UNIX operating system.
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
Why Learn C?
It is one of the most popular programming language
in the world
If you know C, you will have no problem learning
other popular programming languages such as Java,
Python, C++, C#, etc, as the syntax is similar
C is very fast, compared to other programming
languages, like java and Python.
C is very versatile; it can be used in both
applications and technologies
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
Structure of C Program
Header #include <stdio.h>
main()
int main ()
{
Variable
Declaration
int a = 10;
Body print(“%d”,a);
Return
return ();
}
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
Get Started With C
To start using C, you need two things:
A text editor, like Notepad, to write C code
A compiler, like GCC, to translate the C code into a
language that the computer will understand
*There are many text editors and compilers to choose
from. In this tutorial, we will use an IDE integrated
development environment
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
What is a IDE code?
An integrated development environment (IDE) is a
software application that helps programmers develop
software code efficiently. It increases developer
productivity by combining capabilities such as software
editing, building, testing, and packaging in an easy-to-use
application.
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
C Install IDE
An IDE (Integrated Development Environment) is
used to edit AND compile the code.
Popular IDE's include Code::Blocks, Eclipse, and
Visual Studio. These are all free, and they can be used to
both edit and debug C code.
Note: Web-based IDE's can work as well, but
functionality is limited.
We will use Code::Blocks in our tutorial, which we
believe is a good place to start.
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
C Quick Start
Let's create our first C file.
Open Code blocks and go to File > New > Empty
File.
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
Sample Coding
#include <stdio.h>
int main() {
printf("Hello World!");
return 0;
}
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga

C PROGRAMME.ppt

  • 1.
    C PROGRAMME By Mr. V.VEERANAN B.Sc. Computer Science., Dip. In Yoga
  • 2.
    Learn C C isa general-purpose programming language, developed in 1972, and still quite popular. C is very powerful; it has been used to develop operating systems, databases, applications, etc. Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 3.
    The Father ofSoftware Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 4.
    What is C? Cis a general-purpose programming language created by Dennis Ritchie at the Bell Laboratories in 1972. It is a very popular language, despite being old. C is strongly associated with UNIX, as it was developed to write the UNIX operating system. Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 5.
    Why Learn C? Itis one of the most popular programming language in the world If you know C, you will have no problem learning other popular programming languages such as Java, Python, C++, C#, etc, as the syntax is similar C is very fast, compared to other programming languages, like java and Python. C is very versatile; it can be used in both applications and technologies Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 6.
    Structure of CProgram Header #include <stdio.h> main() int main () { Variable Declaration int a = 10; Body print(“%d”,a); Return return (); } Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 7.
    Get Started WithC To start using C, you need two things: A text editor, like Notepad, to write C code A compiler, like GCC, to translate the C code into a language that the computer will understand *There are many text editors and compilers to choose from. In this tutorial, we will use an IDE integrated development environment Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 8.
    What is aIDE code? An integrated development environment (IDE) is a software application that helps programmers develop software code efficiently. It increases developer productivity by combining capabilities such as software editing, building, testing, and packaging in an easy-to-use application. Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 9.
    C Install IDE AnIDE (Integrated Development Environment) is used to edit AND compile the code. Popular IDE's include Code::Blocks, Eclipse, and Visual Studio. These are all free, and they can be used to both edit and debug C code. Note: Web-based IDE's can work as well, but functionality is limited. We will use Code::Blocks in our tutorial, which we believe is a good place to start. Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 10.
    C Quick Start Let'screate our first C file. Open Code blocks and go to File > New > Empty File. Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 11.
    Sample Coding #include <stdio.h> intmain() { printf("Hello World!"); return 0; } Mr. V.Veeranan, B.Sc. Computer Science, Dip. in Yoga
  • 12.
    Mr. V.Veeranan, B.Sc.Computer Science, Dip. in Yoga