Need Of Functions In Programming | C Programming
A function is a self-contained block of program statements that performs a specific task. Imagine a program wherein a set of operations has to be repeated often, though not continuously, n times or so. If they had to be repeated continuously, loops could be used. Instead of inserting the program statements for these operations at so many places, write a separate program segment and compile it separately as many times as it is needed, keep ‘calling’ the segment to get the result. The separate program segment is called a function and the program that calls it is called the ‘main program’. C went one step further; it divided the entire concept of programming to a combination of functions. C has no procedures, only functions. scanf(), printf(), main(), etc. that have been used in programs so far, are all functions. C provides a lot of library functions; in addition, programmers can write their own functions and use them. The special function called main() is where program execution begins. When a function is called upon, with or without handing over of some input data, it returns information to the main program or calling function from where it was called. Please watch the above video to learn in-depth about functions. For more details about the channel, visit our website: https://mathsindepth.in/ Support us on: Facebook: https://www.facebook.com/MathsInDepth... LinkedIn: https://www.linkedin.com/company/math... Instagram: https://www.instagram.com/mathsindepth/ Follow our C programming Playlist: https://www.youtube.com/playlist?list=PLq6b-r81cS_wivFt10pq1t5dKOdzuYAqP Like and Share our videos Subscribe to our channel for more fascinating videos! Greetings, MathsInDepth Team. Welcome to our channel MathsIndepth. #functions #Cprogramming.
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.