0

# How to write a C program to find largest 2 numbers using pointers?

Updated: 12/13/2022

Wiki User

12y ago

program to find maximum of two numbers using pointers

Wiki User

12y ago

Earn +20 pts
Q: How to write a C program to find largest 2 numbers using pointers?
Submit
Still have questions?
Related questions

sorry

### How do you write a c program to find largest of 3 numbers using pointers?

Find the largest of two, then find the largest of that value and the third value. int* max (int* a, int* b) { return (a*) &gt; (b*) ? a : b; } int* max_of_three (int* a, int* b, int* c) { return max (max (a, b), c); }

yes

nahi malum

i cant write

### How do you run graphics program in C?

pro c language to implement linear search using pointers

### How to write a program that ask user to enter numbers until user enter- 0 then find the biggest of entered numbers in C programming using while or do while?

int i, largest=0;do { scanf ("Enter a number (0 to exit): %d", i); if (i&gt;largest) largest=i; } while (i!=0); printf ("Largest number is: %d\n", largest);

### C program to find the largest among three numbers using ternary operator?

max = a &gt; b ? a : b; max = max &gt; c ? max : c;

### Program to count the number of numbers in an array using 8085 microprocessor?

A program which is used to count the number of numbers in an array using a 8085 microprocessor is known as a assembly language program.

### Find the largest palindrome made from the product of two 3-digit numbers?

906609=913*993 I found this using a relatively simple computer program that I wrote.

### How do you write a C program to copy to strings using pointers?

mystrcpy (char* dest, char* src) { while ((*dest++ = *src++) != '\0); }