0

Creating a printf function in C

I need help with understanding variadic functions, I need it to complete a project that requires me to create my own printf function in C

14th Oct 2022, 5:15 PM
Idowu Enoch
Idowu Enoch - avatar
1 Resposta
0
Variadic functions are functions that can take a variable number of arguments. In C programming, a variadic function adds flexibility to the program. It takes one fixed argument and then any number of arguments can be passed. The variadic function consists of at least one fixed variable and then an ellipsis(…) as the last parameter Syntax: int function_name(data_type variable_name, ...); Values of the passed arguments can be accessed through the header file named as: #include <stdarg.h>
15th Oct 2022, 12:18 PM
Bharat Bhushan
Bharat Bhushan - avatar