Tag: function

22
May
2017

Struct Problem 1: 101cproblems

Problem 81: Struct GPA Create a simple structure named Student that holds the following variables- i. id…

21
May
2017

Typedef Enum Union Project

code: #include<stdio.h> typedef union { double weight; int size; char color[10]; } Description; typedef struct { int…

05
Nov
2015

Area of Circle using function

for formula: http://www.mathsisfun.com/area.htm code: #include<stdio.h> double pi=3.1416; double britto(double r) { double area=pi*r*r; return area; } int…

07
Jun
2015

Function in C++

Syntax: function_type function_name(parameter_type parameter_name,parameter_type parameter_name){ function_body; return function_type; } return will work for any function_type except void….void…