Is it correct that the syntax assumptions in the report do not have to align with the advice given on this help forum?
Such as if global variables, variable reassignment and parameter checking have already been implemented, they can be listed as assum...
This is a repost of a previous question https secure.csse.uwa.edu.au run help2002?p np opt U224 , is the following code permitted?
function add a b
return a b
function two
return 2
print add(1, two())
https secure.csse.uwa.edu.au run help2002?p np opt B388 year 2024 do we instead follow this and not allow any duplicate names of variable reassignment now??
This assumption was based off 'you cannot introduce a new function if its name is already used as a variable's name, or introduce a new variable if its name is already used as a function's name.' from https secure.csse.uwa.edu.au run help2002?p np ...
In the submission requirements it says the following
Submit only a single C11 source-code file named runml.c
Do not submit any header-files, documentation, instructions
Is this going to be changed so a report can also be submitted? If so, would...
Thank you so much for clarifying I unfortunately only just noticed the arrow typo, apologies. I will wait for Amitava to clarify regarding the global variables query, thanks again
Hi, would the following code as a .ml file be syntactically valid?
Additionally, can comments be indented with a ' t' outside of a function or will this cause an error? Chris has said randomly indented lines outside of a function is not permitted, bu...
I apologise for repeatedly asking, but I still need a more specific clarification regarding this case. The line 'Whitespace can only appear at the beginning of a line if it is a tab under a function definition' is said to be true but whitespace and t...
How can we determine when a function body should end if not every function requires a return statement?
The sample code with no return in the function body happens to end with a print statement, is this the only alternative to a return statement for ...
Hi,
Does this mean whitespace is only significant when it is at the beginning of a line but still insignificant anywhere else (except when 1 whitespace minimum is necessary)? Therefore, any line beginning with a whitespace would cause an error (inclu...
Is it correct to assume that return can only be used within a function and every function must have a return statement (so a return statement will always denote the end of a function body)?
following on with this question
1. In the cases where 1 whitespace minimum is required (such as after function, return, print, between the function identifier and its parameters), can more whitespace be added without causing any error?
2. Can whitespa...
Hi,
I was wondering roughly what size input we should expect to process in the text files; would it be appropriate to use BUFSIZ in fgets as shown below? (example from lecture 7)
FILE dict;
char line BUFSIZ ;
dict fopen( ..... );
while...