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

How to sequentially represent max-heap?

524


What is the difference between hashmap and treemap?

438


What are all the classes and interfaces that are available in the collections?

504


How do you find the complexity of a selection sort?

498


How does a treemap work?

570






Can map contain duplicate keys?

467


Why is it called bubble sort?

495


What is a data structure? What are the types of data structures?

538


Why quicksort is faster?

491


Does hashmap allow duplicate keys?

539


What do you mean by free pool?

524


How do you represent a linked list?

508


How many links are there in a binary tree of N nodes?

601


Write the syntax in c to create a node in the singly linked list.

545


How efficient is bubble sort?

510