View All num of num See all Photos Broadcom www.broadcom.com Unclaimed Profile Overview Reviews Salaries Interviews Jobs Photos Benefits 1.1k Reviews 4.1k Salaries 409 Interviews Follow Add Review or Salary Follow Add Review or Salary Interview Question Staff Engineer Interview Matawan, NJ Broadcom Question on allocating memory pointers inside a function. A pointer variable is passed as a parameter to a function. Memory allocation is done inside the function for the pointer using malloc. After coming out of the function, will the pointer still retain this address in the main program? Tags: See more , See less 8 Answer Add Tags Answer Interview Answer 1 Answer ▲ 0 ▼ No. When pointer is passed as a function parameter, the address is copied like pass by value. Hence when it is out of the function, its address scope is last. Interview Candidate on Jun 28, 2012 Interviews > Staff Engineer > Broadcom Add Answers or Comments To comment on this, Sign In or Sign Up.