Program to find the biggest among three numbers using pointer

Codes:

Outputs:

Enter three values: 0  2  26

The value of a: 0     b; 2      c:26

biggest number: 26

About Programmingfaster

We the teams of programming faster managed to provide an effective information about the codes of different programming languages.Hope you will learn and understand the codes fast and easy. It's absolutely free, expanding and precise. Our main target is to help those new starters and aid them as far as possible to pave their future in the area of programming. Hoping support and recommendations!
This entry was posted in C, precise examples and tagged , , , , . Bookmark the permalink.

1 Response to Program to find the biggest among three numbers using pointer

  1. sammy Mutahi says:

    using namespace std;

    void greatest(int *a,int *b,int *c)
    {
    if(*a>*b && *a > *c)
    {
    cout<<*a<<" is greater"< *a && *b > *c)
    {
    cout<<*b<<" is greater"<<endl;
    }else{
    cout<<*c<<" is greater"<<endl;
    }
    }
    int main()
    {
    int a =2;
    int b = 3;
    int c = 10;

    greatest(&a,&b,&c);

    return 0;
    }

Leave a Reply

Your email address will not be published. Required fields are marked *