Function in C with notes | Introduction to Function in C | Zeenat Hasan Academy

Function in C with notes | Introduction to Function in C | Zeenat Hasan Academy

#FunctioninC
#UserdefindFunction
#Fuctionprototype

A function is a group of statement for performing Special task every C program has at least one function which is main main is a user defined function function is used to achieve modular programming we can divide a large program into the small function which is enclosed by curly bracket.
Advantages of Function
1.writing function avoids rewriting the same code over and over
2.by using functions it becomes easier to write programs and keep track of what they are doing error finding and Correcting become easy
3. we can call any function any number of times in a program
there are two types of function user defined and Library Function
writing program with the use of function we have to follow three main point of C function
1.function declaration
2.function call
3.function definition
1.Function Declaration-a function must be declared globally in C program to tell the compiler about the function name function parameter and return type
Function Call -Function can be called from anywhere in the program the parameter list must not differ
in function calling and function declaration must pass the same number of values as it is declared in the function declaration
2.function definition is the actual statement which are to be executed means we can write block of statement here
(write Program shown in Video)

Return Type
Every function may or may not return a value from the function if we don't have to return any value from the function then we will use void for return type actually return type shows the type of return value.

Don't Forget to Hit the Like Button👍

Important Playlists that you should check out once!!✌️

1. Computer Graphics in Hindi-
https://bit.ly/3zkHYhi

2. C Programming in Hindi-
https://bit.ly/3mxXKlG

3.Digital Electronics/Computer Architecture in Hindi-
https://bit.ly/3DHhoAZ

4. C++ Programming in Hindi-
https://bit.ly/3DhSFUj

5. Operating System in Hindi-
https://bit.ly/3zgSCpj

6. Data Structure in Hindi-
https://bit.ly/3jgksN6

7. Computer Network in Hindi-
https://bit.ly/3DcX8rz

8. JAVA for beginners in Hindi-
https://bit.ly/3yaWAyw

9. JAVA Practical in Hindi-
https://bit.ly/3yeVj9F

10. Computer Architecture/Digital Electronics in Hindi-
https://bit.ly/3sMVCYn

11. C Programming Topic On Demand in Hindi-
https://bit.ly/3BaXDjP

12. Computer Basics/Computer Fundamental In Hindi-
https://bit.ly/3jcOyRA

13. All Playlists-
https://www.youtube.com/c/ZeenatHasanAcademy/playlists

For CS IT jobs subscribe
Job Alert with Hasan click here
https://www.youtube.com/channel/UCb6tVcsPxjU8aSuGUVtDF1w
............................................
Telegram- (Zeenat Hasan Academy) https://t.me/zeenathasanacademy
.............................................
Instagram- (zeenat_hasan_official) https://www.instagram.com/zeenat_hasan_official/
............................................................
Facebook Page- (Zeenat Hasan Computer's Subject Learning)
https://www.facebook.com/Zeenat-Hasan-computers-subject-learning-2290916771197224/
........................................
Twitter- (Zeenat Hasan 4)
https://twitter.com/Zeenathasan4?s=09







----------LIKE,SHARE AND SUBSCRIBE--------
THANKS FOR WATCHING
TEAM ZH ACADEMY

Function in CAdvantages of FunctionUser-defined Function

Post a Comment

0 Comments