c extern examples
Example: when to use extern "C"
extern "C"{
int printf(const char *format,...);
}
main() {
printf("Hello World");
}
extern "C"{
int printf(const char *format,...);
}
main() {
printf("Hello World");
}