Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Coding on VS code

Hello this is my first time to learn C by a book
But The code doesn’t give output
I installed build essential
What should I do ?

int main()
{
printf("Hello World!");
}

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

There is an error in your code that you are trying to compile, that is at line 3:

intmain which needs to be replaced by int main
Also Add return 0; at the list line inside main function to prevent your application return some unwanted output

Full Code:

#include <stdio.h>

int main(void) {
    printf("Hello, World!");
    return 0;
}
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading