It's UWAweek 44 (2nd semester, 1st exam week)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 820 articles.
Currently 45 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
3:42pm Fri 13th Sep, Amitava D.

ANONYMOUS wrote:
> Hi, > > 1. What is the expected behaviour when someone declares 2 functions of the same name, should the program report an error or replaces the function? > 2. What if it has 2 different parameters but same name? > > Example 1: > # > function increment value > return value + 1 > # > function increment value > return value + 2 > > > Example 2: > # > function increment value > return value + 1 > # > function increment value value2 > return value + value2 + 1 > #
multiple declaration of the same variable (name) is an error, you can assume that. We are not overthinking here, make simplifying assumptions, state those assumptions in a file, and you will be fine.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy