C in 100 Seconds: Functions — Define Once Call Anywhere | Episode 9
0views
002:22
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
A function is a block of code you define once and call whenever you need it. int add takes two numbers and returns their sum. void greet
takes a name and prints a greeting — no return needed.
The return type goes before the name. Parameters go inside the parentheses. Return sends the value back to whoever called it. Void means
the function just does something without giving anything back. Define once, call anywhere.
Student code: https://github.com/GoCelesteAI/c-in-100-seconds/tree/main/episode09
What You'll Learn:
• Defining functions with return types and parameters
• int functions that return a value
• void functions that return nothing
• Calling functions from main
• Same function, different arguments, different output
Next: Episode 10 — Arrays
#c #programming #100seconds #learnc #functions #void #return #parameters #tutorial
Tags
c functions, void c, return c, function parameters c, define call return, c tutorial 2026, c beginner, 100 seconds, learn c, coding
tutorial
Tags
c functionsvoid creturn cfunction parameters cdefine call returnc tutorial 2026c beginner100 secondslearn ccoding tutorial