A file a.cpp & B.cpp are complied & linked together in VC++
file a is something like int a =100;, File B is something
like extern a;
main()
{
printf("%d",a);
}what will be the output.a)100,b)linker error,c)complier
error etc etc.

Answer Posted / ashish chandrakar

It should be compiler 1 compiler error and 1 warning
Error : Undeclared identifier
we have to include stdio.h
Warning: main should return a value; but it assume as return
type as void.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between c++ and vc++?

688


In which Way invoke context-sensitive help inside the editor?

1776


how to declare and populate an array of checkBoxes

675


What is microsoft visual c++ 2010 x86 redistributable?

548


Is microsoft visual c++ important?

629






What is cwinthread class?

666


What is odbc in vc ++?

625


How do I get rid of microsoft visual c++ runtime library error?

654


What is microsoft visual c++ 2005 redistributable?

579


What is visual c++ used for?

573


What is difference between c++ and visual c++?

542


What is microsoft visual c++ 2013 redistributable package x64?

540


Difference between getmessage, postmessage & peakmessage.

598


Do I need all the microsoft visual c++ redistributable?

515


Do I need microsoft visual c++?

562