41. What is the range of values for an 'unsigned long int' data type in C++?
42. What is the correct way to declare a pointer to a character in C++?
43. What does the 'volatile' keyword indicate in C++?
44. What is the output of the following code: cout << (true && true); in C++?
45. Which type is best suited to represent the logical values?
46. What will be the output of the following C++ function?
int main()
{
register int i = 1;
int *ptr = &i;
cout << *ptr;
return 0;
}
int main()
{
register int i = 1;
int *ptr = &i;
cout << *ptr;
return 0;
}
47. What is the value of the bool?
bool is_int(789.54)
bool is_int(789.54)
48. What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
char c = 74;
cout << c;
return 0;
}
#include <iostream>
using namespace std;
int main()
{
char c = 74;
cout << c;
return 0;
}
49. Evaluate the following.
(false && true) || false || true
(false && true) || false || true
50. The size_t integer type in C++ is?
Read More Section(Variables and Data Types in C plus plus)
Each Section contains maximum 100 MCQs question on Variables and Data Types in C plus plus. To get more questions visit other sections.