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

Do I need the microsoft visual c++?

643


Where can I find microsoft visual c++ on my computer?

683


How do I create an mfc application in vc++?

706


What is microsoft visual c++ runtime library error?

638


What is the use of message map? Advantages of a message map.

654






What is dao in vc ++?

615


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

620


What is microsoft visual c++ 2008 redistributable?

681


Can I delete old microsoft visual c++?

635


How do I fix microsoft visual c++ 2015 setup failed?

670


Is visual c++ a compiler?

631


How do I reinstall microsoft visual c++?

594


What is microsoft visual c++ 2005 redistributable?

669


What is mfc in vc++?

787


What is vc++ redistributable?

824