Q. What is the output of the following C++ code?
Code:
#include <iostream>
using namespace std;
int main()
{
cout << sizeof('a') << endl;
cout << sizeof(char);
return 0;
}
β
Correct Answer: (B)
1 1