| | |
Pls help.I have To Implent Biggest function to find biggest element in that array!
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Oct 2008
Posts: 11
Reputation:
Solved Threads: 0
Pls help.I have To Implent Biggest function to find biggest element in that array!
-1
#1 Oct 26th, 2008
#include <stdio.h>
#define SIZE 16
int* biggest(int *a, int count);
int main(void)
{
int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",
*p);
return 0;
}
int* biggest(int *a, int count)
{
#define SIZE 16
int* biggest(int *a, int count);
int main(void)
{
int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",
*p);
return 0;
}
int* biggest(int *a, int count)
{
•
•
Join Date: Jan 2008
Posts: 3,829
Reputation:
Solved Threads: 501
Re: Pls help.I have To Implent Biggest function to find biggest element in that array
0
#2 Oct 26th, 2008
•
•
•
•
#include <stdio.h>
#define SIZE 16
int* biggest(int *a, int count);
int main(void)
{
int values[16] = { 47, 17, 38, 91, 33, 24, 99, 35, 42, 10, 11, 43, 32, 97, 108, -8 };
int *p;
p = biggest(values, SIZE);
printf("the biggest element in the array is %i\n",
*p);
return 0;
}
int* biggest(int *a, int count)
{
[code]
// paste code here
[/code]
•
•
Join Date: Nov 2007
Posts: 390
Reputation:
Solved Threads: 39
Re: Pls help.I have To Implent Biggest function to find biggest element in that array!
1
#3 Oct 27th, 2008
![]() |
Other Threads in the C++ Forum
- Previous Thread: remainder problem
- Next Thread: pointer problem
| Thread Tools | Search this Thread |
api array arrays based beginner binary c++ c/c++ calculator char class classes code compile compiler console conversion count delete deploy desktop directshow dll download dynamic dynamiccharacterarray encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory newbie news number output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg simple string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






