Pergunta de entrevista da empresa Qualcomm

What is difference between functions and interupts?

Resposta da entrevista

Sigiloso

23 de jul. de 2012

Give an example of function like add which adds two variables a and b and result is stored in c. Functions always return some value and Interupts never return a value, you can only pass parameters to it. For ex when you have a jump instruction i.e. like JMP C500 it will branch to the address specified to the instruction.