C
C++
Java
C#
Python
C
Functions
C
Chapters
Overview
(3)
Basic Structure of C (34)
Executing 'C' Program (0)
Sample Program (4)
Constants, Variables & Data Types
(4)
C Data Types (2)
Variables & Constants (0)
Keywords & Identifier (0)
Tokens (0)
Operators and Expressions
(10)
Arithmatic Operators (1)
Increment and Decrement Operators (1)
Assignment Operators (1)
Relational Operators (1)
Logical Operators (1)
Conditional Operators (1)
Bitwise Operators (1)
Special Operators (1)
C Expressions (1)
Type Conversion (1)
I/O Operations
(2)
Printf() (1)
Scanf() (1)
Decision Making and Branching
(7)
IF Statement (5)
IF..ELSE Statement (13)
Nested IF..ELSE Statement (1)
ELSE IF Leader (1)
?:Operator (Conditional Expression) (0)
Switch Statement (2)
GOTO Statement (1)
Decision Making and Looping
(4)
While Loop (7)
Do While Loop (1)
For Loop (43)
Jumps in Loops (1)
Arrays
(4)
Declaring & Initializing Arrays (1)
One Dimensional Arrays (18)
Two Dimensional Arrays (7)
Multi Dimensional Arrays (3)
Character Arrays and Strings
(3)
Declaring & Initialization String (1)
Reading Strings (1)
String Handling Funtions (1)
Functions
(7)
Function Declaration (2)
Function Calls (20)
Function Arguments (11)
Types of Functions (2)
Recursion (1)
Passing Arrays to Functions (1)
Passing Strings to Functions (0)
Structures
(5)
Structure Initialization (3)
Size of Structures (1)
Arrays within Structure (5)
Structures within Structures (0)
Structures & Functions (4)
Unions
(3)
Union Initialization (1)
Accessing Union Members (0)
Passing Union to Function (0)
Pointers
(6)
Declaring & Initialization of Pointer (2)
Pointer and Character Strings (2)
Array of Pointers (2)
Pointer As Function Arguments (2)
Pointers to Functions (2)
Pointers & Structures (0)
File Management
(4)
Opening a File (2)
Closing a File (1)
File Operations (31)
Error Handling In File (1)
Dynamic Memory Allocation and Linked Lists
(2)
Dynamic Memory Allocation (0)
Command Line Argument (0)
Functions
17-11-2016
733
7 Topics
37 Programs
C Program to print Pascal triangle.
Function Calls
16-06-2017
C Program to demonstrate sending and receiving values between functions.
Function Declaration
21-06-2017
C Program to demonstrate that one function can be called multiple times.
Function Declaration
28-06-2017
C Function which returns the absolute value of an integer that is passed as a parameter.
Function Calls
28-06-2017
C Function which returns the smaller of its two parameters.
Function Calls
28-06-2017
C Function that returns the maximum of three floating-point numbers.
Function Calls
28-06-2017
C Function which prints square of given number.
Function Calls
28-06-2017
C Function that converts inches to centimetre.
Function Calls
28-06-2017
C Function that prints perimeter and area of right triangle.
Function Calls
28-06-2017
C Function which receives a float and an int from main(), finds the product of these two and returns the product which is printed through main().
Function Arguments
28-06-2017
C Function distance that calculates the distance between two points (x1, y1) and (x2, y2). All numbers and return values should be of type double.
Function Arguments
28-06-2017
C Function to determine whether the year is a leap year or not.Any year is entered through the keyboard.
Function Arguments
28-06-2017
C Function to test for a valid triangle.
Function Arguments
28-06-2017
C Function that inputs a students average and returns 4 if a student's average is 90 to 100, 3 if the average is 80 to 89, 2 if the average is 70 to 79, 1 if the average is 60 to 69, and 0 if the average is lower than 60.
Function Arguments
28-06-2017
C Function which, when passed the side of a triangle, return the area using Heron's formula. This function should first make sure that triangle is valid if it is not the function can return zero or negative value as an error indicator.
Function Arguments
28-06-2017
C Function to compute the distance between two points and use it to develop another function that will compute the area of the triangle whose vertices are A(x1, y1), B(x2, y2), and C(x3, y3) Use these functions to develop a function which returns a value 1 if the point (x, y) lines inside the triangle ABC, otherwise a value 0.
Function Arguments
28-06-2017
C Function called hypotenuse that calculates the length of the hypotenuse of a right triangle when the other two sides are given. Use this function in a program to determine the length of the hypotenuse for each of the following triangles. The function should take two arguments of type double and return the hypotenuse as a double. Test your program with the side values specified below: Triangle Side 1 Side 2 1 3.0 4.0 2 5.0 12.0 3 8.0 15.0
Function Arguments
28-06-2017
C Function multiple that determines for a pair of integers whether the second integer is a multiple of the first. The function should take two integer arguments and return 1 (true) if the second is a multiple of the first and 0 (false) otherwise. Use this function in a program that inputs a series of pairs of integers.
Function Arguments
28-06-2017
C Program that reads several numbers and uses the preceding statement to round each of these numbers to the nearest integer. For each number processed, print both the original number and the rounded number.
Function Arguments
28-06-2017
C Function that receives marks received by a student in 3 subjects using loop and returns the average and percentage of these marks. Call this function from main () and print the results in main().
Function Calls
28-06-2017
C Function that receives 5 integers using loop and returns the sum, average and standard deviation of these numbers. Call this function from main() and print the results in main().
Function Calls
28-06-2017
C Function to calculate the factorial value of any integer entered through the keyboard.
Function Calls
28-06-2017
C Function power (a, b) to calculate the value of a raised to b.
Function Calls
28-06-2017
C Function to print the table of squares and cubes of 1 to 10.
Function Calls
28-06-2017
C Function which generates the random number.
Function Calls
28-06-2017
C Program that simulates coin tossing. For each toss of the coin the program should print Heads or Tails. Let the program toss the coin 100 times, and count the number of times each side of the coin appears. Print the results. The program should call a separate function flip that takes no arguments and returns 0 for tails and 1 for heads.
Function Calls
28-06-2017
C Program to general-purpose function to convert any given year into its roman equivalent. The roman equivalents of decimal numbers: 1 â€“ i, 100- c, 5- v ,500- d, 10- x, 1000 â€“ m ,50- l Example: Roman equivalent of 1988 is mdcccclxxxviii Roman equivalent of 1525 is mdxxv
Function Calls
28-06-2017
C Program to compute the greatest common divisor given by Euclidâ€™s algorithm using function.
Function Calls
11-07-2017
C Program to check whether given number is prime or not using function.
Function Calls
11-07-2017
C Program to obtain the prime factors of this number using function.
Function Calls
11-07-2017
C Program to check whether given number is perfect or not using function.
Function Calls
11-07-2017
C Program to find first digit of an integer using function.
Function Calls
11-07-2017
C Program to takes an integer value and returns the number with its digits reversed using function.
Function Arguments
11-07-2017
C program to demostrate the standard library function sqrt().
Types of Functions
18-12-2017
C program to find the factorial of given number using recursion.
Recursion
18-12-2017
C program to compute sum of two integers using user defined function.
Types of Functions
18-12-2017
C program to passing the array into function.
Passing Arrays to Functions
18-12-2017