Qualcomm
Embedded Firmware Engineer
Calculator Program
Medium
TechnicalcodingCandidate Selected
Write a simple calculator program.
Code Snippets
C
#include <stdio.h> // Basic calculator code
int main() { int a, b, res; char op; printf("Enter first number: "); scanf("%d", &a); printf("Enter operator: "); scanf(" %c", &op); printf("Enter second number: "); scanf("%d", &b); switch(op) { case '+': res = a + b; break; case '-': res = a - b; break; case '*': res = a * b; break; case '/': res = a / b; break; default: printf("Invalid operator"); return 1; } printf("Result: %d\n", res); return 0; }This question was asked in
Qualcomm Embedded Firmware Engineer Interview Experience
I had a comprehensive interview experience with Qualcomm consisting of four rounds: a technical round focusing on C programming and operating systems, an onsite round discussing Android-related topics, and a hiring manager round that revisited technical subjects. The overall difficulty was medium, with a good mix of theoretical and practical questions, including pointers, memory management, and Android middleware. Overall, it was an engaging process that tested both my technical knowledge and practical skills.