a) isalpha() b) isalnum() c) isdigit() d) isblank() Answer: d Explanation: Character classification provides isblank() function to check whether ...
View QuestionWhich function is used to check whether a character is a number?
a) isalpha() b) isalnum() c) isdigit() d) isblank() Answer: c Explanation: Character classification provides isdigit() function ...
View QuestionWhich function is used to check whether a character is an alphabet or number?
a) isalpha() b) isalnum() c) isdigit() d) isblank() Answer: b Explanation: Character classification provides isalnum() function to ...
View QuestionWhich function is used to check whether a character is an alphabet?
a) isalpha() b) isalnum() c) isdigit() d) isblank() Answer: a Explanation: Character classification provides isalpha() function to check ...
View QuestionWhat we can’t do on a void pointer?
a) pointer arithmetic b) pointer functions c) pointer objects d) pointer functions & objects Answer: a Explanation: Because the ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int a = 5, c;
void *p = & a;
double b = 3.14;
p = & b;
c = a + b;
cout << c << ‘\n’ << p;
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 n = 5;
void *p = & n;
int *pi = static_cast< int*>(p);
cout << *pi << endl; 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;
char c;
void *data;
i = 2;
c = ‘d’;
data = & i;
cout << “the data points to the integer value” << data;
data = & c;
cout << “the data now points to the character” << data;
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 *p;
void *vp;
if (vp == p);
cout << “equal”;
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 func(void *Ptr);
int main()
{
char *Str = “abcdefghij”;
func(Str);
return 0;
}
int func(void *Ptr)
{
cout << Ptr;
return 0;
}
What will be the output of the following C++ code? #include <iostream> ...
View Question