in Compiler Design retagged by
377 views
3 votes
3 votes
what type of error is caused if function name is same as a keyword name?
in Compiler Design retagged by
377 views

3 Comments

moved by

declaration syntax error??

0
0
it could give no error or will give syntax error.

for eg: if you want to call wow(int a); and instead call while(int a); then it will give no compiler error

but if you want to call fro(int a); and instead call for(int a); then it will give syntax error.
1
1
@nitish

If I multiply a char with an int and store it as int. This is a semantic error but will this be detected during compile time?
0
0

Please log in or register to answer this question.

Related questions