device engineer interview questions shared by candidates
what is volatile, static ? how would it affect if the static keyword used for big array inside a function? what are sections of memory and what kind of variable is stored where?
if Volatile used then the compiler dont consider to optimize that variable . Assume that a variable changed at the time of running . But some compiler optimized .to avoid that we use volatile. Static is the keyword which is used to initialized to once that means extra burden for a compiler to keep the variable .and permanantly allocate space in stack.if you diclare static array then stack overflow will occur.
Just clarify one thing, the static variables within a function are not allocated to the function or thread's stack, instead, they are allocated to BSS area, just like other global variables. so it won't affect their function too much.
static variable is not stored on stack.
Between the following materials, steel, magnesium, titanium, copper, aluminum, which is the most stiff and why? What does the stress strain plot look like for steel versus aluminum? What should you do if you want to increase the force until fracture? What would the stress strain plot look like if you took a material went until ultimate strength and then went back to zero stress and then went back to ultimate strength?
puzzle: if there are 72 legs in total and there are 28 animals involving chickens and horses , how many are horses and how many chickens, solve without using equations? How does a vending machine work, describe blocks and what are funtions just to see if I can break down problem into small modules and analyse
See Interview Questions for Similar Jobs
- Graphic Designer
- Truck Driver
- Sales Associate
- Account Executive
- Human Resource
- Dental Assistant
- Administrative Assistant
- Social Worker
- Mechanical Engineer