Social Sciences, asked by AnshumanPani7071, 1 year ago

Difference between incorrect syntax and invalid syntax

Answers

Answered by Anonymous
2
Hello

Incorrect syntax: when you are making a programme and you have completed it then you will compile it then the compiler will show an error of syntax which means you have to correct the use of the syntax like u missed ";"
Or u put ; after void main in c++


But in case of invalid syntax error it means that this programming language doesn't support the used syntax or you have done some mistake in typing that syntax which the compiler is not able to detect.
There both are run type errors.
#cosmic
Similar questions