Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- qualcomm intervew 1:
- starts with more basics questions on C
- like static
- A.h ->static int a;
- b.c:include A.h
- a+=100;
- print(a)
- c.c:inculde A.h
- a+=10;
- print(b);
- ans:we cant include static valiables
- stack and heap memory
- pointers
- syncronization os concepts
- multi threading
- https://www.geeksforgeeks.org/difference-const-char-p-char-const-p-const-char-const-p/
- and standerd problems like diamond problem in cpp
- coding question :
- 1.buy and sell stocks unlimted no of times to get profit
- 2.bitoperations swap alternate 3 bits in a give uint32 ( 001 110 101 111 ->110 001 111 101)
- 3.you have given an arry of size n which contains random number we need to write a random fucntion that return random number from array
- it should always return destint number .
- you can ask any doubts with interviewer
- no hash maps no extra storage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement