Please help me how I can use function declearation below to create an array of salaries that will copies all salaries into the created array and return the pointer to this array. [note: use dynamic array]
Function declearation:
double* salarycollectio n(Employee * employee, int size).
User Profile
Collapse
-
Create function Salarycollection.
-
challa started a topic Is assigning null to non pointers considered wrong or improper in standard c++ code?in CIs assigning null to non pointers considered wrong or improper in standard c++ code?
Hello everyone,,
`int x = NULL`
Is this considered wrong or bad? and if so why?
I used to write 'using namespace std;' in my code because that's what most textbooks and classes did, but I found a nice post on a forum explaining why its bad and the reason for so. So it made me wonder if making a none pointer NULL was bad.
What if the int could be 0, or any other number? How could we check...
No activity results to display
Show More