Yeah its working now, thanks a lot for help - even if it was probably one of the most basic problems you've seen on these boards xD
#include "stdafx.h"
#include <iostream>
using namespace std;...
Type: Posts; User: scojan
Yeah its working now, thanks a lot for help - even if it was probably one of the most basic problems you've seen on these boards xD
#include "stdafx.h"
#include <iostream>
using namespace std;...
#include "stdafx.h"
#include <iostream>
using namespace std;
int main ()
{
int NumEls[5] = {15, 25, 40, 50, 24};
int * pVals;
pVals = NumEls;
int max = *pVals++;
Defining ‘i = 1’ in the line:
for(i=1; i<NumEls; ++i)
Missing the first entry of the array out each time the function is run (first element of an array is defaulted as 0).
Max ==...
The FindMax() function given below is used to find the maximum value in an array of integers which has a start address in memory defined by the pointer pVals. The number of elements in the array is...