I am on the first lesson at learn C .org . And I am stuck already! I cannot see why one of these code will run and the other gives an error.
#incude <stdio.h>
int main() {
printf(“Mixfish”);
return 0;
}
#include <stdio.h>
int main() {
printf(“Mixfish”);
return 0;
}
prog.cpp:4:19: error: ‘printf’ was not declared in this scope
printf(“Mixfish”);
^
#incude <stdio.h>
int main() {
printf(“Mixfish”);
return 0;
}
#include <stdio.h>
int main() {
printf(“Mixfish”);
return 0;
}
created
last reply
- 1
reply
- 529
views
- 2
users