Qualcomm Interview Report
- 0of 0 votes
AnswersThis question was asked by the device driver's team: Can a variable be declared with both the 'const' and 'volatile' qualifiers ?
- DesiGrad October 21, 2009| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer C - 0of 0 votes
AnswersFor the following piece of code:
- DesiGrad October 21, 2009
func(int d)
{
int temp;
while(temp)
temp--;
}
How does the compiler behave differently if the variable temp is declared with the volatile 'qualifier' ?| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer C - 1of 1 vote
AnswersDevice a function that removes the occurences of blank spaces from a string. Constraints: run in linear time and the algorithm must be in-place. For example if,
- DesiGrad October 21, 2009
string = Hi there wassup
output = Hitherewassup| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer String Manipulation - 0of 0 votes
AnswersOne real mind-boggling question: Rewrite malloc and free so that they detect memory corruption. For example in a code,
- DesiGrad October 21, 2009
ptr = malloc(5)
write(20); // you modify 20 bytes starting at address ptr
free(ptr);| Report Duplicate | Flag | PURGE
Qualcomm Software Engineer / Developer Operating System
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.