identify the error in the declaration int 2puc;
Answers
Answered by
2
Question:-
Identify the errors in the following code.
Answer:-
Given code,
int 2puc;
As we know that identifier name should not start with a digit, so the given variable declaration is invalid.
Errors are marked here:- int 2puc;
Answered by
1
Answer:
Question:
- identify the error in the declaration int 2puc;
Answer:
- int 2puc;
here in this statement.... u cannot put numbers as a variable name..... so it is syntax error
the correct declaration is.... int puc;
Similar questions