Question
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
char* ptr;
6.
unsigned long int Test = sizeof(size_t(0) / 3);
7.
cout
What is the output of this program?
1.
#include
2.
using namespace std;
3.
int main()
4.
{
5.
char* ptr;
6.
unsigned long int Test = sizeof(size_t(0) / 3);
7.
cout
Answer: Option D
Was this answer helpful ?
The size of unsigned long int always depends on compiler.
Output:
$ g++ exs4.cpp
$ a.out
4
Was this answer helpful ?
More Questions on This Topic :
Question 7.
What is meant by exception specification?
....
Submit Solution