Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Answer Posted / asit ranjan

Syntax error occurs when there happens to be a misuse of a
programming language's instructions.It happens at the time
of compilation.such errors need to be rectified before
proceeding further.
e.g.
1> x_y+z will cause syntax error as '_' is not an
assignment operator.
2>if(a=b) will cause syntax error as '=' is not relational
operator.

Runtime Error occurs at run-time.Such error cause a program
to end abrubtly or even cause system shut-down.Such errors
are hard to detect.
e.g. Error caused due to low system memory.

Logical Error :- It may happen that a program contains no
syntax or run-time errors but still it doesn't produce the
correct O/P.It is because the developer has not understood
the problem statement properly.These errors are hard to
detect as well.
e.g. Error caused when any loop is not closed at the right
place.

Is This Answer Correct ?    68 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sorting is worst?

939


What are the advantages and disadvantages of copyonwritearraylist?

1077


What are the major data structures used in the rdbms?

975


What is array traversing?

847


What is the difference between hashset and treeset?

932


What are the different types of hash functions?

903


Describe stack operation.

919


Write the c program to insert a node in circular singly list at the beginning.

857


Write the steps involved in the insertion and deletion of an element in the stack.

1291


Why do we need searching algorithms?

1010


What are types of Collision Resolution Techniques and the methods used in each of the types?

1028


Which sorting is best and why?

850


What method removes the value from the top of a stack?

912


What do you mean by articulation point?

945


an array t[100] which contains numbers between 1..99. Return the duplicated value. Try both O(n) and O(n-square).

872