Unit Introduction
A good problem solving approach is to divide the problem into multiple smaller parts or sub-problems. Solution of the whole problem thus consists of solving the sub-problems one by one, and then integrating all the solutions. In this way, it becomes easier for us to focus on a single smaller problem at a time, instead of thinking about the whole problem all the time. This problem solving approach is called divide and conquer. C programming language provides us with functions that allow us to solve a programming problem using the divide and conquer approach. In this chapter, we will learn the concept of functions, their advantages, and how to work with them.
5.1 Functions
A function is a block of statements which performs a particular task, e.g. printf is a function that is used to display anything on computer screen, scanf is another function that is used to take input from the user. Each program has a main function which performs the tasks programmed by the user. Similarly, we can write other functions and use them multiple times.
5.1.1 Types of Functions
There are basically two types of functions:
1) Built-inFunctions
2) User Defined Functions
Built-in Functions
The functions which are available in C Standard Library are called built-in functions. These functions perform commonly used mathematical calculations, string operations, input/output operations etc. For example, printf and scanf are built-in functions.
User Defined Functions
The functions which are defined by a programmer are called user-defined functions. In this chapter we will learn how to write user defined functions.
Timestamp
00:00 Video Intro
01:22 Unit Introduction
06:58 Function
08:24 Types of Function
08:58 Build-in Functions
09:56 User Defined Functions
10:21 Outro
Social Media Links:
_____/❤ All Students are requested to Follow Me on Social Media!! ❤\_______
Instagram:➜ / digitaleduc. .
Twitter:➜ / shahbaz_ali101
Facebook Page:➜ / digitaleduca. .
Whatsapp:➜ https://chat.whatsapp.com/GqLGyGuZyNp...
Youtube:➜ https://bit.ly/32hA7C4?sub_confirmati...
10th Class Computer Science:
How to install and Download Code::Blocks:
https://bit.ly/3HuCBzO
10th Computer Science All Lectures Playlist:
https://bit.ly/3eYGMbb
10th Computer Science All Exercise Playlist:
https://bit.ly/3pMcoqu
10th Computer Science All Example Code Playlist:
https://bit.ly/3pKxxkK
10th Computer Science All Programming Time:
https://bit.ly/3eOmTmJ
10th Computer Science All Activities Playlist:
https://bit.ly/3eFQOh1
10th Computer Science All Programming Exercise Playlist:
https://bit.ly/3zltiQ6
9th Class Computer Science:
9th Computer Science Chapter 1:
https://bit.ly/3SCa6pR
9th Computer Science Chapter 2:
https://bit.ly/3SBi2I4
9th Computer Science Chapter 4:
https://bit.ly/3EfbEBT
9th Computer Science Chapter 4:
https://bit.ly/3EjLduP
9th Computer Science Chapter 5:
https://bit.ly/3SU0O8x
9th Computer Science All Exercise:
https://bit.ly/3EgNnvh
9th Computer Science All Activates:
https://bit.ly/3rrYppN
9th Computer Science Complete Lectures:
https://bit.ly/3t2BBhr
#FunctionsInC
#CFunctions
#FunctionsCTutorial
#CFunctionsTutorial
#CTutorialFunctions
#CFunctionsExplained
#FunctionsTutorialInC
#CProgrammingLearnFunctions
#WhatIsFunctionInCWithExample?
#FunctionsInCLanguage
#FunctionsInCProgramming
#SyntaxOfFunctionInC
#SyntaxOfFunctions
#ExampleOfFunctionsInC
#CProgramming
#CProgrammingFunctions
#DigitalEducation
#DigitalEducationShahbazAli
#IntroductiontoProgramming
#LearnPythontheHardWay
#PythonCrashCourse
#IntroductiontoPython
#IntroductiontoJava
#IntroductiontoC
#IntroductiontoC
#ComputerGraphicsCourse
#IntroductiontoProgrammingLanguage
#IntroductiontoWebDevelopment
#CProgrammingCourse
#IntroductiontoCProgramming
#10thComputerChapter1
#10thComputerChapter2
#10thComputerChapter3
#10thComputerChapter4
#10thComputerChapter5
#10thComputer
#10thComputerChapter1Exercise
#10thComputerChapter2Exercise
#10thComputerChapter3Exercise
#10thComputerChapter4Exercise
#10thComputerChapter5Exercise
#10thComputerScience
#10thComputerPaper2022
#10thComputerPairingScheme2023
#10thComputerPaper2023
#10thComputerPairingScheme2023
#CLanguageTutorialforBeginners
#CLanguage
#CLanguageFullCourse
#CLanguageProgramming
#CLanguageCodewithHarry
#CLanguageFullCourseinHindi
#CLanguageBasics
#CLanguageTutorial
#CLanguageCourse
#CLanguageTutorialforBeginnersinHindi
#CLanguageinHindi
#CLanguageSaurabhShukla
#CLanguageProject
#CLanguagewithHarry
Computer Science 10th class
Lecturer of Computer Science
By Sir Shahbaz Ali
For any query or private tutoring contact (0309-0334424)
[email protected]