0
Q:

when to use extern "C"

#ifdef __cplusplus  
extern "C" { 
#endif 
    /* Declarations of this file */
#ifdef __cplusplus 
} 
#endif 
0
extern "C"{
   int printf(const char *format,...);
}
main() {
   printf("Hello World");
}
0

New to Communities?

Join the community