Category: Function

22
May
2017

Problem 85: Product

Create a structure named Product with following two fields- 1. name (string) 2. price (double) Then create…

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…

21
May
2017

Using function with Struct user defined type also pointer

code: #include<stdio.h> typedef struct { int roll; char name[20]; double gp; } sTudent; void inputStudent(sTudent *sp) {…

19
May
2017

Send Array to Function Using Pointer

code: #include<stdio.h> void printArray(int *p_array,int n) { int i; printf(“Content of the array: “); for(i=0; i<n; i++)…

19
May
2017

Return More Than one Value in a Function

In function we can’t retun more than one value with return keyword. In this case we need pointer…