Skip to content

Tag Archives: C-Functions

New programmers are usually in the search of ways to return multiple values from a function. Unfortunately, C and C++ do not allow this directly.… Read More
The getopt() function is a builtin function in C and is used to parse command line arguments. Syntax:We provide nothing but the best curated videos… Read More
We all know that code of every function resides in memory and so every function has an address like all others variables in the program.… Read More
Why there is need of using ‘&’ in case if scanf function while not in case of printf function. Examples:Take a step-up from those "Hello… Read More
Prerequisite : Functions in C/C++ A function in C can be called either with arguments or without arguments. These function may or may not return… Read More
Variable length argument is a feature that allows a function to receive any number of arguments. There are situations where we want a function to… Read More
Some programmer thinks that defining a function inside an another function is known as “nested function”. But the reality is that it is not a… Read More
A function is a set of statements that take inputs, do some specific computation and produces output. The idea is to put some commonly or… Read More
Predict the output of following C program.Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and… Read More
#include <stdio.h> #include <stdarg.h> int fun(int n, ...) {     int i, j = 1, val = 0;     va_list p;     va_start(p, n);     for (; j <… Read More
In C, what is the meaning of following function prototype with empty parameter list Take a step-up from those "Hello World" programs. Learn to implement… Read More
What is the meaning of using static before function declaration? For example following function sum is made staticTake a step-up from those "Hello World" programs.… Read More
What is the meaning of using extern before function declaration? For example following function sum is made externTake a step-up from those "Hello World" programs.… Read More
Predict the output?Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check out… Read More
Output of following program?Take a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked List and many more! Check… Read More

Start Your Coding Journey Now!