C help | Sololearn: Learn to code for FREE!

+6

C help

When i write the program it says compilation Error

4/20/2019 7:00:19 AM

DipTheDi

17 Answers

New Answer

+12

I was asking about that program not about language

+12

Can you write the code that give error in your question and also tell the name of compiler or ide as well

+12

Yeah,that code produce errors because you have defined main() function two times which is illegal.any function can be defined only once in any program.

+11

Which program

+5

What if you were trying this only, https://code.sololearn.com/cbfwQJyTJWFB/?ref=app

+5

#include <studio.h> #include <Conio.h> Void main () { Clrscr (); Printf ("hello world"); getch (); }

+4

C program

+4

Data types

+4

#include <studio.h> #include <Conio.h> Void main () { Clrscr (); Printf ("hello world"); getch (); } Is this a wright c programme

+3

I posted it

+3

Thanks, ;)

+2

Hii muze koye help karge kya plg

+1

0

Bro your question is incomplete

0

Compilation error is the error generated by compiler, during compiling Source code into Binary Code (executable or runnable file). Compilation of code is done in 4 stages are as preprocessing (by Preprocessors), translation (byTranslator), assembling(by Assembler), and linking(Linker). Based on these 4 stages there are 4 sub-categories of compilation errors are as: 1) Preprocessor Error: https://www.linuxtopia.org/online_books/an_introduction_to_gcc/gccintro_93.html 2) Translator Error: error during changing HLL to ML. https://qr.ae/pGNdbX 3) Assembler Error: Error occurr in generating assembly code https://www.freepascal.org/docs-html/user/usersu100.html#:~:text=C.,14.1%20General%20assembler%20errors&text=This%20fatal%20error%20is%20reported,performs%20a%20division%20by%20zero.&text=These%20fatal%20error%20is%20reported,evaluated%20by%20the%20constant%20parser. 4) Linker Error: A linker error occurs when the the linker is unable to use the input files and directives to successfully https://qr.ae/pGNdJQ

-1

If you got compilation errors.... Then there must be error name mentioned while in compilation..you just have to read that error...and try to solve and understand that errors...it would help you to solve compilation problem easly and you would also have knowledge of types of errors occurs