IBM Bloomberg LP Interview Question for Financial Software Developers Software Engineer / Developers






Comment hidden because of low score. Click to expand.
0
of 0 vote

when we try to access any part of memory which has not been allocated to the program..a segmentation fault occurs..
e.g.
int a[10];
accessing a[11] or a[10] will cause segmentation fault.

- nitesh October 03, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

Accessing a[11] wont give segmentation fault. Seg fault occurs if we try to read or write into other processes address space

- San October 23, 2010 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

not true. It really depends on the size of the stack and the ABI of the OS that you are running on. To have seg fault you really have to blow up your stack.

- Anonymous December 23, 2008 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

int main()
{
main();
}

- Anonymous January 20, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

actually nitesh is right,, refer to wiki

- shoushou January 24, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

int main()
{
   char* p;
   char c;

   p = (char*) 0;
   c = *p; //generates seg fault
}

- Anonymous May 19, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

when one process tries to write into the address space of the other process, segment violation happens, not just reading the address space of the other process.

- Anonymous November 07, 2009 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

see wiki

- Helen.li.yuhan May 18, 2011 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Well if the process tries to write into the address space of other process it is global replacement and leads to thrashing. Whereas when a process tries to map to the actual physical memory location from its segment number and offset & the situation arises that the offset is out of the limit register value of the segment then it is called segment fault

- Vins May 19, 2011 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More