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 depth and height of a node?

506


What do you mean by breadth first search (bfs)?

610


List out the advantages of using a linked list?

496


What is map keyset?

462


Are collections thread safe?

458






What the principle of quick sort and its complexity?

541


Is treeset thread safe?

482


What is the height of a binary tree?

493


Explain pre-order and in-order tree traversal.

535


What are the types of linked list?

500


Define non-linear data structures?

565


What is heap tree?

462


Explain singly linked list in short.

545


State the advantages of using infix notations?

670


What is data structure and its types?

485