Interview Questions

C Pgm - General Questions

C Programming Interview Questions

General Questions III

C Program - General Questions

  • C-program compilation steps
  • Linked List creation, adding elements, insertion in the middle, deleting elements in the middle.
  • 2-Dimentional array creation, allocation
  • Reversing bits.
  • Where static and global data members stored?
  • What is shared lib and static library?
  • Difference between typedef and #define?
  • Difference between #define and CONST, which one will you chose in programming?
  • Sizeof operator without using sizeof operator?
  • Search the middle element in a given list?
  • How and steps a C program executes.,
  • How the program is loaded in execution space
  • C program Compilation steps
  • C program memory layout.
  • Diff b/w string and string lit
  • What actually preprocessor does
  • What are storage classes available ?what are the scenarios the specific storage class is used?
  • Are you comfortable with pointers, linked list and Queues?
  • What is memory mapping ?How kernel knows to which memory location the devices are mapped?
  • How can you avoid accessing of an array beyond its limits?
  • What is Memory Leak?
  • What are the possible ways that memory leaks can happen in a program ?(Apart from allocation and not freeing )
  • How a memory leak can happen in a linked list?
  • How can you avoid accessing of an array beyond its limits?
  • Whether an exception or normal operation when an array is accessed beyond its limits?
  • What are types of function(Callback,Recursion ....)? what is advantage and disadvantages of each function type?
  • What are different searching algorithms explain each one ,implement any one?
  • How can you corrupt STACK?
  • What are the issues faced while developing driver projects?
  • What are your strengths?
  • Rate yourself in C?
  • What is Blocking and Pooling? Differentiate?
  • Storage classes in C
  • What is pointer
  • What is volatile
  • What is Structure
  • Difference between structure and class
  • How to debug different threads in GDB?
  • Whether an exception or normal operation when an array is accessed beyond its limits?
  • What is Function Pointer?
  • What is Call back function?
  • How Call Function works?
  • What is VOLATILE keyword?
  • Write a program to perform a string copy without using string library functions?
  • How to pass a two dimensional array to other function?
  • Syntax of main with arguments?
  • Difference between string and string literal
  • compilation steps of a C program
  • Memory allocation of a c program
  • Why uninitialized data is placed in uninitialized data segment?
  • How do find whatever a processor is Big Endian/Little Endian?
  • How to search for a specific nth-node in a given unknown number of nodes in a linked list?
  • How to determine the size of structure without using "sizeof" operator?
  • What is memory leak, how to avoid
  • How to delete similar nodes from a linked list, not by traversing every node.
  • what is the difference between global and static
  • why stack is always in higher location.
  • how the default value is get assigned to static variables?
  • Struct test { int a; int b; }; Assume you don’t know the contents of structure, and you have the base address of test strucuture alone, how to do access the data inside it ??
  • What should be done for static library based linking in gcc ?
  • What is object file and what are symbols ?
  • Can you tell the memory layout based on Data,BSS,HEAP and STACK ?
  • What is a stack frame, stack pointer & frame pointer ?
  • What is a profiler ? Which one have you used ?
  • How do you determine the direction of stack growth ?


If you have any queries please email us at info@motionzen.com