Difference between incorrect syntax and invalid syntax
Answers
Answered by
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
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