Vidyalelo
C++ Programming · Q704

C++ miscellaneous

Programming · C++ Programming · question 704

Q704

What will be the output of the following C++ code? #include #include 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]);

A.
111110111110
Answer
B.
111111111110
C.
111000111110
D.
111110000000

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board