Q. What is the output of the following C++ program?
Code:#include <iostream>
using namespace std;
int main()
{
cout << sizeof(char);
cout << sizeof(int);
cout << sizeof(float);
return 0;
}
Dear candidates you will find MCQ questions of C++ here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
#include <iostream>
using namespace std;
int main()
{
cout << sizeof(char);
cout << sizeof(int);
cout << sizeof(float);
return 0;
}
#includeusing namespace std; int main() { int n = 10; for (int i = 0; i < n; i++ ) { n++; continue; cout << n; } return 1; }