- 1
Why my program c is incorrect
#include<stdio.h> main(){ Printf(Hello world); }
2 odpowiedzi
+ 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
+ 4
Kids can code
String should be inside double quotes and also main method should have return type.