- 1

Why my program c is incorrect

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

22nd Aug 2021, 9:02 AM
Kids can code
2 ответов
+ 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