CSE MCQs :: C++ - MCQs
- What are the parts of the literal constants?
- How the constants are declared?
-
What is the output of this program?
#include
using namespace std;
int main()
{
int const p = 5;
cout << ++p;
return 0;
}
-
What is the output of this program?
#include < iostream >
using namespace std;
#define PI 3.14159
int main ()
{
float r = 2;
float circle;
circle = 2 * PI * r;
cout << circle;
return 0;
}
- Which of the following statement is true about preprocessor directives?
-
Regarding following statement which of the statements is true?
const int a = 100;
- The difference between x and 'x' is
- How to declare a wide character in string literal?