Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.14 KB

File metadata and controls

25 lines (17 loc) · 1.14 KB

img

Variadic functions

Intro

In this session, we will have a look at variadic functions in C.

About

Variadic functions are function that take a variable number of arguments. Say they take argument whose number is not exacly know at the time of compilation.

Resources

  1. stdarg.h
  2. Variadic functions
  3. The const keyword
  4. Variadic funtions in action
  5. What Google says about variadic functions

Learning objectives

After going through the above resources, you should be able to explain to anyone without the help of Goolge the following concepts.

  • What are variadic functions
  • How to use va_start, va_argand va_end macros
  • Why and how to use the consttype qualifier