Presented By:
Abhishek Pratap Singh
B.Tech. (I.T.) – 5th Sem.
Roll No. 03
Presented To:
Mr. Shashi Sharma
INTRODUCTION
Topic : PROGRAMMING BASICS
Duration : 19th July 2016 to 11th November 2016
(9 weeks – 8 hours per week)
Website : www.edx.org
University : IIT Bombay
MOTIVATION
To gain Accurate & Precise Knowledge of
Programming Basics
To Build a Strong Programming Base.
ABSTRACT
(Idea of Topic)
Basic programming skills.
To write C/C++ programs to solve real world computational problems.
Good programming practices.
How to handle large and complex programs.
APPLICATION
AREA
Builds the Basic Knowledge for any other programming language.
Programming is EVERYWHERE
“System
Programmin
g Language”
1978
‘DEC PDP-11’
‘BCPL’ by Martin Richards & ‘B’ by
Ken Thompson (“Typeless” Languages).
“System
Prog. Lang.”
EVOULTIONS IN ‘C’
1) ALGOL – Algorithm Language (mid-1950s)
2) BCPL – Basic Combined Prog. Lang. (Martin Richards)
3) B – Contraction of BCPL or Bon Lang. (Ken Thompson)
4) Tradition C
5) K&R C (Kernighan And Ritchie )
6) ANSI C (ANSI Committee )
7) ANSI/ISO C (ISO Committee )
8) C99 (Standardization Committee)
SOME INTERESTING FACTS ABOUT
‘C’ & ‘C++’
How was C made?
 B  C
Why are all OS built by C, C++, etc.? Why not Java?
 (JVM  OS & OS  JVM)  Infinite Mutual Recursion  System Stack
Overflow!
 C  Direct H/W Interaction
 Java  Commercial Prog.
SOME INTERESTING FACTS ABOUT
‘C’ & ‘C++’
If C and C++ give the best performance, why do we still code in other
languages?
 Performance – Features – Time – Optimization – Strong
Which language is best C, C++, Pyhton or Java?
 OS(C) – Speed(C++) – Time(Python) – Boss(Java)
Why was the computer language following C called C++ and not C+?
SOME INTERESTING QUESTION!!!
WAP to print “C” 100 times,
WITHOUT USING ANY LOOP!!!
WAP to print “C”,
WITOUHT USING ‘;’ SEMICOLON!!!
#include <stdio.h>
int main( )
{
static int i = 1;
printf("%d . Cn", i);
(i == 100) ? exit(0) : main(++i);
return 0;
}
#include <stdio.h>
void main( )
{
while( printf(“Cn") )
{
// NO Semicolons used
}
}
Programming Basics

Programming Basics

  • 1.
    Presented By: Abhishek PratapSingh B.Tech. (I.T.) – 5th Sem. Roll No. 03 Presented To: Mr. Shashi Sharma
  • 2.
    INTRODUCTION Topic : PROGRAMMINGBASICS Duration : 19th July 2016 to 11th November 2016 (9 weeks – 8 hours per week) Website : www.edx.org University : IIT Bombay
  • 3.
    MOTIVATION To gain Accurate& Precise Knowledge of Programming Basics To Build a Strong Programming Base.
  • 4.
    ABSTRACT (Idea of Topic) Basicprogramming skills. To write C/C++ programs to solve real world computational problems. Good programming practices. How to handle large and complex programs.
  • 5.
    APPLICATION AREA Builds the BasicKnowledge for any other programming language. Programming is EVERYWHERE
  • 6.
    “System Programmin g Language” 1978 ‘DEC PDP-11’ ‘BCPL’by Martin Richards & ‘B’ by Ken Thompson (“Typeless” Languages). “System Prog. Lang.”
  • 7.
    EVOULTIONS IN ‘C’ 1)ALGOL – Algorithm Language (mid-1950s) 2) BCPL – Basic Combined Prog. Lang. (Martin Richards) 3) B – Contraction of BCPL or Bon Lang. (Ken Thompson) 4) Tradition C 5) K&R C (Kernighan And Ritchie ) 6) ANSI C (ANSI Committee ) 7) ANSI/ISO C (ISO Committee ) 8) C99 (Standardization Committee)
  • 8.
    SOME INTERESTING FACTSABOUT ‘C’ & ‘C++’ How was C made?  B  C Why are all OS built by C, C++, etc.? Why not Java?  (JVM  OS & OS  JVM)  Infinite Mutual Recursion  System Stack Overflow!  C  Direct H/W Interaction  Java  Commercial Prog.
  • 9.
    SOME INTERESTING FACTSABOUT ‘C’ & ‘C++’ If C and C++ give the best performance, why do we still code in other languages?  Performance – Features – Time – Optimization – Strong Which language is best C, C++, Pyhton or Java?  OS(C) – Speed(C++) – Time(Python) – Boss(Java) Why was the computer language following C called C++ and not C+?
  • 10.
    SOME INTERESTING QUESTION!!! WAPto print “C” 100 times, WITHOUT USING ANY LOOP!!! WAP to print “C”, WITOUHT USING ‘;’ SEMICOLON!!! #include <stdio.h> int main( ) { static int i = 1; printf("%d . Cn", i); (i == 100) ? exit(0) : main(++i); return 0; } #include <stdio.h> void main( ) { while( printf(“Cn") ) { // NO Semicolons used } }