CMP 332 -Lect-1
CMP 332 -Lect-1
LECTURE ONE
It is a vocabulary and set of grammatical rules for instructing a computer or computing device to perform
specific tasks.
Programming Languages are important for software technologies. It is a key factor to every software.
There are different programming languages that are currently trendy. Such as:
• C
• C++
• Java
• C#
• Python
• Ruby. etc
Flow of programming Languages
Compiler
Input
Output
Structure of Programming Languages
Syntax: a set of rules that determine what is a legal string---which strings belong to the
language, which don't
Semantics: a set of rules that associate a meaning with each legal string of the language.
Main Function is important part of programming languages. Main function is like our body, each
and every function happens in main function section. Main function is starting point of
programming languages. Sub function is optional one. If needed it we can use, otherwise leave it.
All programming language is syntax wise different apart from others, these are same. For
example if I need to print one line using any programming language, see below:
For Example:
// Main Method in C#
static public void Main(String[] args)
{
System.out.print(“Welcome To C# Corner”);
Java Language
Console.WritLine(“Welcome To C#
C# language
Corner”);
Without programming language we cannot communicate with machines or systems. Systems only
know machine code. Machine codes mean some set of series of numbers.
Humans only know high level languages but machines do not know high level languages.
We need one intermediate because humans could not understand machine languages like machines
Makes it easier to learn new languages some languages are similar; easy to walk
down family tree