Syntax refers to the structure/form of the code that a specific programming language specifies but Semantics deal with the meaning assigned to the symbols, characters and words.
What is the difference between syntax and semantics in terms of function in programming
ANSWER:
The syntax of a programming language describes which strings of of characters comprise a valid program.When one piece of code invokes or calls a function, it is done by the following syntax: variable = function_name ( args, ...)
The semantics of a programming language describes what syntactically valid programs mean, what they do. It does so by evaluating the meaning of syntactically valid strings defined by a specific programming language, showing the computation involved
Answers & Comments
Syntax refers to the structure/form of the code that a specific programming language specifies but Semantics deal with the meaning assigned to the symbols, characters and words.
#CarryOnLearning
QUESTION:
What is the difference between syntax and semantics in terms of function in programming
ANSWER:
The syntax of a programming language describes which strings of of characters comprise a valid program.When one piece of code invokes or calls a function, it is done by the following syntax: variable = function_name ( args, ...)
The semantics of a programming language describes what syntactically valid programs mean, what they do. It does so by evaluating the meaning of syntactically valid strings defined by a specific programming language, showing the computation involved