Advertisement
sidlglove

interview exp

Jun 23rd, 2021 (edited)
1,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.84 KB | None | 0 0
  1. qualcomm intervew 1:
  2.  
  3.  
  4. starts with more basics questions on C
  5. like static
  6.  
  7. A.h ->static int a;
  8. b.c:include A.h
  9. a+=100;
  10. print(a)
  11. c.c:inculde A.h
  12. a+=10;
  13. print(b);
  14.  
  15. ans:we cant include static valiables
  16.  
  17. stack and heap memory
  18. pointers
  19. syncronization os concepts
  20. multi threading
  21. https://www.geeksforgeeks.org/difference-const-char-p-char-const-p-const-char-const-p/
  22. and standerd problems like diamond problem in cpp
  23.  
  24.  
  25.  
  26. coding question :
  27. 1.buy and sell stocks unlimted no of times to get profit
  28. 2.bitoperations swap alternate 3 bits in a give uint32 ( 001 110 101 111 ->110 001 111 101)
  29. 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
  30. it should always return  destint number .
  31.  you can ask any doubts with interviewer
  32. no hash maps no extra storage
  33.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement