Call
A function call is an operation or expression that invokes a function or other callable, optionally supplies arguments, and initiates its execution.
Learn AI-Assisted Python Programming, Second Edition
A function call is an invocation that transfers execution to a function and resumes at the code following the invocation when the function returns.
- How it is used
- Uses calls to activate functions, obtain their results, perform work, and test behavior with varied inputs.
- How deep it goes
- Explains arguments, return values, variables, nested execution, and interactive testing, but stops short of implementation internals.
- Examples
- Demonstrates larger, money_made, max, input, print, and a nested sequence of illustrative function calls.
- What you can do after
- Apply it in Python by calling functions, capturing results, testing inputs interactively, and tracing nested execution.
Read how Learn AI-Assisted Python Programming, Second Edition explains call →
Modern C
A function call is an expression or statement that invokes a function and supplies any required arguments.
- How it is used
- Uses calls to transfer control to functions and supply the values they need, beginning with formatted terminal output.
- How deep it goes
- Explains call syntax, value passing, prototype-guided conversion, recursive locals, and function-pointer calls; defers pointer-based access when first introducing calls.
- Examples
- Uses a formatted `printf` call, a prototype-driven numeric conversion, and equivalent calls through function-pointer expressions.
- What you can do after
- Apply it to read and write calls whose arguments match a prototype, while distinguishing copied values from access through pointers.
Modern C, Third Edition
A function call is an expression or statement that requests execution of a function with supplied arguments.
- How it is used
- Uses calls to explain how a C program requests work from functions and transfers control to them.
- How deep it goes
- Explains arguments, call by value, function-pointer conversion, recursive locals, and sequencing; defers pointer-based access when first introducing calls.
- Examples
- Uses a formatted printf call, equivalent calls through function pointers, and side-effecting argument calls with two possible outputs.
- What you can do after
- Evaluate/understand it: trace control transfer and argument values, and recognize when side-effecting calls can produce different valid results.
The Art of AI Product Development
Function calling is a model interaction capability in which a language model produces a structured request to invoke a specified software function or tool.
- How it is used
- Connects language models to software tools so applications can retrieve data, perform operations, and act on user requests.
- How deep it goes
- Explains selection, structured execution, reliability options, and risks, but stops short of detailed implementation code.
- Examples
- Uses website analytics retrieval, database queries, calculations, machine-learning access, and function-calling benchmarks as examples.
- What you can do after
- Operate/configure model-tool integrations with structural constraints, validation, security measures, and application-specific evaluation.
Get Programming: Learn to code with Python
A function call is an invocation of a function that executes its body with supplied arguments and produces a result.
- How it is used
- Uses calls to run reusable functions with specific values and use their results in a program.
- How deep it goes
- Traces parameter mapping, call scope, and returned values, including tuples, implicit None, and chained calls.
- Examples
- Demonstrates word_length calls, tuple-returning addition and subtraction, and chained calls to nested functions.
- What you can do after
- Apply calls by supplying values, capturing returned results, and using those results in later statements.
Read how Get Programming: Learn to code with Python explains call →
Secrets of the JavaScript Ninja, Second Edition
The act of executing a function through a function invocation mechanism.
- How it is used
- Uses invocation forms to explain how JavaScript establishes a function’s this context.
- How deep it goes
- Distinguishes four invocation forms and their effects on this, detailing ordinary function calls with a strict-mode comparison.
- Examples
- Demonstrates ninja() and strict samurai() returning window and undefined, alongside method, constructor, call, and apply forms.
- What you can do after
- Understand how invocation form changes this, including ordinary calls in strict and nonstrict mode.
Read how Secrets of the JavaScript Ninja, Second Edition explains call →
Build AI-Enhanced Web Apps
Function calling is a technique in which an AI model requests execution of specified functions to obtain information or perform actions and then uses the results in its response.
- How it is used
- Extends AI applications with real-time data retrieval and actions through developer-provided functions or tools.
- How deep it goes
- Explains the request–execute–incorporate workflow and schema role without detailing implementation code.
- Examples
- Uses a weather API lookup and custom Vercel AI SDK tools handled as React components.
- What you can do after
- Apply it via the Vercel AI SDK by defining functions, registering tools, and handling their responses as React components.
Related concepts
- command-line argumentuses · A command-line argument is a value supplied to a program when it is invoked, either as positional input or as an option that configures its behavior.
- printfuses · printf is a formatted-output API that uses a format specification and supplied values to produce text, either returning it or writing it to an output destination.
- thisconfigures · In JavaScript, the this value is determined by a function’s call context or, for an arrow function, inherited lexically.
- function pointer typeuses · A function pointer is a value that designates a callable function and can be stored, passed, or invoked indirectly.
- functionuses · A function is a callable program unit that performs an operation, may accept inputs, and can produce a result or side effect.
- function-like macroequivalent to · A function-like macro is a macro invoked with function-like syntax that accepts token input and expands or transforms it into generated source.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






