what does extern c do 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");
}