What will be printed out as a result of the following program's execution?
#include <iostream.h>
#include <conio.h>
#define N=10
int main()
  int x = N;
  cout << x;
  return 0;
The header <iostream.h> doesn't exist in standard C++. It was part of some pre-1990s compilers, but it is certainly not part of C++.
Use #include <iostream> instead. And all the library classes are in the std:: namespace, for ex­am­ple std::cout.

Thanks, @Namoshek ! Changed)

2016 Jun 15, 5:48:04 PM

Actually the #include with quotes is looking for the file in the current directory, so to give the question more sense, put the includes into <>.

2016 Jun 9, 6:30:41 PM

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Sign Up Now
or Subscribe for future quizzes