Question
#include <iostream>
using namespace std;
int main()
{
unsigned long x = 64;
cout << x << oct << x << endl;
return 0;
}
a.
64100
b.
48
c.
345
d.
None of the mentioned
Posted under Object Oriented Programming Using C++
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the output of this program?
Similar Questions
Discover Related MCQs
Q. What is the use of the function “showbase”?
View solution
Q. Which operator is used to insert the data into file?
View solution
Q. Which function is used to position back from the end of file object?
View solution
Q. How many objects are used for input and output to a string?
View solution
Q. Which member function is used to determine whether the stream object is currently associated with a file?
View solution
Q. Which header file is used for reading and writing to a file?
View solution
Q. Which one is always faster in writing on C++?
View solution
Q. How many tests are available in read and write operations?
View solution
Q. What will act as a intermediate between i/o operations and physical file?
View solution
Q. By using which function does the buffer are automatically flushed?
View solution
Q. How many parameters are available in the function setbuf?
View solution
Q. What is the main feature of locale in C++?
View solution
Q. Which objects information is loaded in locale object?
View solution
Q. How many categories are available in facets?
View solution
Q. What kind of locale does every program is having in C++?
View solution
Q. What will the monetary facet will do?
View solution
Q. Which header file is used with input and output operations of C in C++?
View solution
Q. Which will be used with physical devices to interact from C++ program?
View solution
Q. How many streams are automatically created when executing a program?
View solution
Q. How many indicators are available in c++?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Object Oriented Programming Using C++? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!