What do you mean by: Syntax Error, Logical Error, Runtime Error?

Answer Posted / bipin from utkal university

syntax error is the poor understanding of the language ie
grammatical error
Ex printf("bbsr")
this is syntax error because every c statement should
terminate by semicolon

logical error is the poor understanding of the program ie
program is grammatcally correct but you will get unexpected
result due to incorrect in program logic
Ex: suppose our program is add two integer.In program you
have written a-d instead of a+b.so you will get unexpected
output

runtime error is the bug(error) at run time.
Ex something divided by zero, 44/0

Is This Answer Correct ?    16 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define balance factor of a node in avl tree?

594


Define a tree?

574


What is the difference between hashmap and arraylist?

513


What is data structure definition?

485


Explain the uses of matrix with an example?

545






Is treeset synchronized?

450


What is a list in data structure?

456


What is difference between map and hashmap?

462


Define double hashing?

559


What is the difference between array list and vector list?

497


What is an object array?

516


Does linkedhashset allow null values?

496


Treemap orders the elements on which field?

512


What are the goals of data structure?

700


What is the time complexity of arraylist and linked list?

452