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 you need microsoft visual c++?

612


What is vcruntime?

595


What is vc++ redistributable?

754


What is odbc in vc ++?

634


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

671






How do I uninstall vc++ 2015?

514


What is cmutex?

586


Difference between critical section, mutex and semaphore.

632


Do I need microsoft visual c++ on my computer?

589


What is microsoft visual c++ runtime library error?

555


What is vcredist?

635


Where can I find microsoft visual c++?

574


Is visual c++ the same as c++?

575


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

1786


What is the Use of the Developer Studio Editor?

2163