Bloomberg LP Interview Report
- 0of 0 votes
AnswersThere are 3 files in a program.
- Bandicoot March 23, 2010
// File: foo.c
static int var;
void foo()
{
var++;
}
// end of file foo.c
// File bar.c:
static int var;
void bar()
{
var++;
}
// end of file bar.c
// file main.c
static int var;
void main()
{
foo();
bar();
printf("%d", var);
}
// end of file main.c
Question: Will the above program compile ? If so what will be the result ?| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer C - 0of 0 votes
AnswersProbability question: Persons A and B go shopping together. Say person A spent X amount of money and B Y. What is the probability that the sum total of their purchases [i.e. X+Y] has 0 cents [i.e. is a whole number]. ?
- Bandicoot March 23, 2010| Report Duplicate | Flag | PURGE
Bloomberg LP Financial Software Developer Brain Teasers
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.