Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

What will a declaration such as “extern "C" char foo(int);” do?

It tells the compiler that it should use C's calling convention for storing parameters and return values on the stack.
It ensures that foo's mangled link name matches that of the C compiler so it can be called from C functions.
It says that foo is an external function that will be compiled by the C compiler.
It tells the linker that it should find foo in the external section named "C" in the compiled file.
Nothing, it is a syntax error.
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon