What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
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[12] = “H3ll0\tW0r1d”;
for(int i=0;i< 12;i++)
{
cout<<(bool)iscntrl(arr[i]);
}
}
What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
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[12] = “H3ll0\tW0r1d”;
for(int i=0;i< 12;i++)
{
cout<<(bool)isprint(arr[i]);
}
}
What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
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[12] = “H3ll0 W0r1d”;
for(int i=0;i< 12;i++)
{
cout<<(bool)isalpha(arr[i]);
}
cout<< endl;
for(int i=0;i< 12;i++)
{
cout<<(bool)isdigit(arr[i]);
}
}
What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
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[12] = “Hello World”;
for(int i=0;i< 12;i++)
{
cout<<(bool)isalpha(arr[i]);
}
}
What will be the output of the following C++ code? #include <iostream> #include <cctype> using namespace std; int ...
View QuestionWhich function is used to check whether a character is punctuation mark?
a) isxdigit() b) isprint() c) iscntrl() d) ispunct() Answer: d Explanation: Character classification provides ispunct() function to check ...
View QuestionWhich function is used to check whether a character is hexadecimal?
a) isxdigit() b) isprint() c) iscntrl() d) ispunct() Answer: a Explanation: Character classification provides isxdigit() function to check ...
View QuestionWhich function is used to check whether a character is printable on console?
a) isxdigit() b) isprint() c) iscntrl() d) ispunct() Answer: b Explanation: Character classification provides isprint() ...
View QuestionWhich function is used to check whether a character is tab or a control code?
a) isspace() b) isalnum() c) iscntrl() d) isblank() Answer: c Explanation: Character classification provides ...
View QuestionWhich function is used to check whether a character is tab or space or whitespace control code(\n,\r,etc.)?
a) isspace() b) isalnum() c) iscntrl() d) isblank() Answer: a ...
View Question