User Profile

Collapse

Profile Sidebar

Collapse
challa
challa
Last Activity: Mar 24 '21, 03:12 AM
Joined: Jul 23 '20
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • challa
    started a topic Create function Salarycollection.

    Create function Salarycollection.

    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).
    See more | Go to post

  • Is 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...
    See more | Go to post
No activity results to display
Show More
Working...