Introduction to C Programming History and Function

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

Explain the purpose of the definition section in C programming?

The definition section defines all symbolic constants using the # define directive.

What is the purpose of the global declaration section in C programming?

The global declaration section declares global variables and all user-defined functions, which are used in more than one function.

What is the primary requirement for every C program?

Every C program must have one main function.

What are the two parts of the MAIN() FUNCTION SECTION in C programming?

<p>The MAIN() FUNCTION SECTION contains the Declaration part, which declares all variables used in the executable part, and the Executable part, which contains at least one statement.</p> Signup and view all the answers

What does the subprogram section contain in a multifunction C program?

<p>The subprogram section contains subprograms if the program is a multifunction program.</p> Signup and view all the answers

Match the following C programming sections with their descriptions:

<p>Definition section = Defines symbolic constants using #define directive Global declaration section = Declares global variables and user-defined functions Main() function section = Must contain at least one statement in the executable part Sub program section = Contains code for multifunction programs</p> Signup and view all the answers

Flashcards are hidden until you start studying

Study Notes

History of Programming Languages

  • 1957: FORTRAN (FURMULA TRANSLATION) used for mathematical and scientific calculations
  • 1960: COBOL (COMMON BUSINESS ORIENTED LANGUAGE) used for business applications or software
  • 1967: BCPL (BASIC COMBINED PROGRAMMING LANGUAGE) used as a general-purpose language
  • 1970: B language developed
  • 1972: C language developed, a particular task-oriented language

Structure of C Programming

  • Document Section: consists of comment lines giving program name, author, and details
  • Link Section: provides instructions to the compiler to link functions from the system library using #Include directive
  • Definition Section: global declarations
  • Global Declaration Section: declaration of global variables
  • Main() Function Section: declaration and executable parts
  • Subprogram Section: functions (Function 1, Function 2, ..., Function n)

Programming Principles

  • Functions as building blocks of C programming

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

More Like This

History of High-Level Programming Languages
10 questions
History of Programming Languages Quiz
5 questions
History of Programming Languages Quiz
48 questions

History of Programming Languages Quiz

UnconditionalWildflowerMeadow47 avatar
UnconditionalWildflowerMeadow47
Use Quizgecko on...
Browser
Browser