+ 6

What is compilation error in C language?

Why and when is compilation error formed?

27th Jul 2019, 6:42 AM
Kyaw Win Htut
Kyaw Win Htut - avatar
5 Respostas
+ 11
Do you notice that it's not stop running your programs for a while more than it should take. That kinds of problems is compilation errors and after a minute or more it show blank mornitor. and compilation error happen when you didn't follow by the syntax that is defined by the founder.
28th Jul 2019, 2:27 AM
Aung Thiha
Aung Thiha - avatar
+ 2
Compilation error is an error formed when we try try to change the rules in a language........ Means compiler will rise a compilation error when we breach the syntax of language...... Why is formed .... Because machine is machine it can't understand by itself or can't correct itself when you write something which not follow the rules of language it will raise the error.....
27th Jul 2019, 7:01 AM
Pavan Sharma
Pavan Sharma - avatar
+ 2
When: Compilation error formed when we do not follow the syntax defined by C language.Syntax means the rules to write the code or program in language. Why: If we misspell the keyword or try to use the keywords or data types not defined in the C language.When we try to compile the code with this type of errors the compiler of C shows the error. e.g.,if we used a character or any variable in program with declaration the it shows error like -compile time error it is not defined.
27th Jul 2019, 10:27 AM
Chaitanya Taware
Chaitanya Taware - avatar
+ 2
Usually syntax error, but could be due to non-inclusion of header files, memory leaks etc 🤔
28th Jul 2019, 4:56 AM
Sanjay Kamath
Sanjay Kamath - avatar
+ 2
Compiling your C program suggests a review of your code and then checking for errors if present. If your code is without a bug or error your compilation is a success while if there is an error (of any type i.e syntax semantic whatever) in your code then first • Your program won't run •The program won't run specifically because your code didn't compile. The program runs only if your language's interpretor is able to compile the code written by you. So a compilation error is basically an error in the code you have written and that error can be a type error or an issue with the memory usage of variables or you defying the rules of programming and creating mishap such as messing up with the libraries or main function
28th Jul 2019, 10:29 AM
Rohan Dhar
Rohan Dhar - avatar