- 1

Why my program c is incorrect

#include<stdio.h> main(){ Printf(Hello world); }

22nd Aug 2021, 9:02 AM
Kids can code
2 Answers
+ 5
#include <stdio.h> int main() { printf("Hello World"); return 0; } Function main must have return value and string should be in quotation marks because compiler will think that it is a variable and give you error that variable wasn't declare
22nd Aug 2021, 9:14 AM
Roma Butaku
Roma Butaku - avatar
+ 4
Kids can code String should be inside double quotes and also main method should have return type.
22nd Aug 2021, 10:27 AM
AÍąJ
AÍąJ - avatar
Hot today
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
FRC Coding?
1 Votes
Quiz duel
0 Votes
AI
2 Votes
help
0 Votes
APIs
1 Votes