Name the type of error(Syntax or semantic error) in each case given below
1. int a=5
2. int b="hello"
Answers
Answered by
1
Answer:
in the first question a semicolon is missing so the error is syntax error
int the second question the data type is declared wrong it should be string instead of int so the error is syntax
Similar questions