- What are the storage classes?
- Where static, auto, and register will be stored?
- Difference between static and extern? What is the value of the following program? Eg : File A.c #include <stdio.h> #include "B.h" main () { printf(" A.c Value %d\n", count++); } File B.c #include <stdio.h> #include "B.h" main () { printf("B.c Value %d\n", count++); } File B.h #include <stdio.h> int count = 5; The answer is both files print 0, and after the printf, A.c prints 6, and B.c prints 0.
- Write a string reverse program without using strrev function.
- Swap the odd and even bits in a number.
- In a MP3 player, play a song randomly whenever you open the player, and the songs should be all played randomly. Eg: If we have 50 songs, it should start play random song whenever the player is opened, and it should complete all 50 before repeating any songs.
- How to print the function in the gdb.
The interviewer advised me not to utter the word "buffer" in any interview as it gives wrong impression.
Comments
Post a Comment