#include<stdio.h>
#include<conio.h>
int small(int *a, int *b, int *c);
void main()
{
int num1, num2, num3, smallnum;
clrscr();
printf("Enter the 3 numbers\n");
scanf("%d%d%d",&num1, &num2, &num3);
smallnum = small (&num1, &num2, &num3);
printf("Smallest number = %d", smallnum);
getch();
}
int small(int *a, int *b, int *c)
{
int result = *a;
if ( *a > *b)
result = *b;
if (result > *c)
result = *c;
return result;
}
Showing posts with label smallest of three number using fucntion with pointer. Show all posts
Showing posts with label smallest of three number using fucntion with pointer. Show all posts
Subscribe to:
Posts (Atom)
BEML Apprentice Recruitment 2026: 400 Vacancies, Eligibility, Dates & Apply Online
BEML Apprentice Recruitment 2026: 400 Vacancies, Eligibility, Dates & Apply Online BEML Limited has opened applications for Apprentice t...
-
Date of Job Mela: November 12th 13th 2016 Venue: Karwar Medical College Time: 10.00 am Job Oppurtunity for all categories: Inform...
-
Union Bank Recruitment 2026-27: 395 Officer Vacancies, Apply from July 21 Union Bank of India Recruitment Project 2026-27 opens July 21, 20...