Explain logical errors? Compare with syntax errors.



Explain logical errors? Compare with syntax errors...

Answer / Tripti Verma

Logical errors in C programming occur when the program's logic is incorrect, resulting in unexpected output. They are difficult to detect and debug because they do not prevent the program from compiling or running. Syntax errors, on the other hand, cause the compiler to generate an error message since there is a mistake in the code's syntax.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is a void pointer? When is a void pointer used?

1 Answers   Aspire, Infogain,


Why does this code crash?

1 Answers  


what are the different storage classes in c?

1 Answers   TCS,


What is the use of function overloading in C?

1 Answers   Ittiam Systems,


how to write a cprogram yo get output in the form * *** ***** ******* ********* ******* ***** *** *

3 Answers  


Write a program to implement a round robin scheduler and calculate the average waiting time.Arrival time, burst time, time quantum, and no. of processes should be the inputs.

1 Answers   Aspiring Minds,


HOW CAN ADD OUR FUNCTION IN LIBRARY.

5 Answers  


What does static variable mean in c?

1 Answers  


What are the advantages of the functions?

1 Answers  


Where are some collections of useful code fragments and examples?

1 Answers   Celstream,


What does c value mean?

1 Answers  


Which are low level languages?

1 Answers  


Categories