What will be the output of the following C++ code? #include <iostream> ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main ()
{
int x, y;
x = 5;
y = ++x * ++x;
cout << x << y;
x = 5;
y = x++ * ++x;
cout << x << y;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int i, j;
j = 10;
i = (j++, j + 100, 999 + j);
cout << i;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a = 5, b = 6, c, d;
c = a, b;
d = (a, b);
cout << c << ‘ ‘ << d;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View QuestionWhat is the use of dynamic_cast operator?
a) it converts virtual base class to derived class b) it converts the virtual base object to derived ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout << a;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View QuestionWhat is this operator called ?:?
a) conditional b) relational c) casting operator d) unrelational Answer: a Explanation: In this operator, if the condition ...
View QuestionWhich operator is having the highest precedence?
a) postfix b) unary c) shift d) equality Answer: a Explanation: The operator which is ...
View QuestionWhich operator is having the right to left associativity in the following?
a) Array subscripting b) Function call c) Addition and subtraction d) Type cast Answer: ...
View Question
What will be the output of the following C++ code?
#include <iostream>
#include <cctype>
using namespace std;
int main(int argc, char const *argv[])
{
char arr[27] = “abcdefghijklmnopqrstuvwxyz”;
for(int i=0;i< 27;i++)
{
cout<<(bool)isxdigit(arr[i]);
}
}
What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
View Question