how to declare a function extern c code example
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");
}