Q.1 Write a program to store marks obtained by 50 students. Initialise the array having passed to a function initilise() having passed the array as parameter. Write another function which should take this array as parameter and return the highest score from the array. you have to write the proper function call, prototype and definition for each function.
THIS WAS MY QUESTION.
And this is the program which i wrote and got errors: -
#include<iostream.h>
#include<conio.h>
#define s 50
You have to declare variables before you try to use them OP. I don't even have to compile this to tell that you're getting (among others) something like "'m' was not declared in this scope" or something like that right?
Also, your declaration of the function "init()" expects an array but you're passing it a single element of an array in a for loop which isn't what your assignment is asking you to do.
Why do you appear to be trying to clear the console screen right off the bat? Do you know how annoying programs that do that are? Please don't fall into that habit.