how many error occurs in C language ?

Answer Posted / mrs.ahmer

There are three types of errors in C language.
1:syntax error:-It occurs if The statement terminator is
missing at the end of statement,A misspelled keyword is
used in the program,Any of the delimiters is missing.

2:Logical error:-It occurs due to wrong logic of
programmer.it usually occurs when programmer writes wrong
formula to calculate the result.

3:Runtime error:-A type of error that occurs during the
execution of a program is known as runtime error.If user
may ask the program to open a file that does not exist or
the user may enter wrong type of data.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we change the value of #define in c?

776


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

836


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3401


Explain the use of 'auto' keyword in c programming?

900


How can you tell whether two strings are the same?

1038


What is array of structure in c?

799


What is clrscr ()?

866


What is the data segment that is followed by c?

833


What are the advantages and disadvantages of a heap?

925


What is the scope of local variable in c?

792


What does & mean in scanf?

840


Do pointers take up memory?

854


show how link list can be used to repersent the following polynomial i) 5x+2

1902


What is %d used for?

783


What is array in c with example?

874