Bloomberg L.P.
3.2 of 5 1,025 reviews
www.bloomberg.com New York, NY 5000+ Employees

Bloomberg L.P. Software Engineer Interview Question

"pointers in c++"
Add Tags [?]
Answer Flag Question

Part of a Software Engineer Interview Review - one of 1,594 Bloomberg L.P. Interview Reviews

Answers & Comments

0
of 0
votes
I mean this is a simple question.

int* pi; // pointer to a memory segment where is an integer
int* pd; // pointer to a memory segment where is a double
sizeof(pi) == sizeof(pd) == sizeof(pAnything) == 4; // it is alway true on the 32 bit system (4*8 = 32)
A pointer does not need initialise:
int* pi; // correct expression.
On the other hand a reference have to been initialised by another variable:
int iVariable = 10;
int& ri = iVariable;
int& ri2; // compilation error
- Bencze Zoli on May 5, 2012 Flag Response

To comment on this question, Sign In with Facebook or Sign Up


Bloomberg L.P. – Why Work for Us?

Bloomberg’s global mission is to help individuals, enterprises and governments make smarter, faster, more profitable decisions — first. In order to get there, we need constant ideas, energy, innovation— which is where… Full Overview

Provided by employer [?]

Tags are like keywords that help categorize interview questions that have something in common.

Glassdoor is your free inside look at Bloomberg L.P. interview questions and advice. All interview reviews posted anonymously by Bloomberg L.P. employees and interview candidates.