C Basic Questions

C Basic Questions and answers. This section will help you to answer question related to C in interviews.

  1. History of C ?
  2. What is machine code ?
  3. What is Compiler , assembler  and interpreter ? Give Examples of each
  4. Structure of C program ? ( Building Blocks )
  5. What is Preprocessor ?
  6. What is macro ?
  7. What is library in c ? Give Exmaples.
  8. Write compilation process ?
  9. How to represent octal and hex number in c ? Give examples
  10. Write on:
    Conditional Statement
    I/O statement
    Looping Statements
  11. What is variable in c ?
  12. What is datatypes in c ?
  13. What is Global and Local variables ?
  14. What are storage classs in C ? Give Examples.
  15. What is process ?
  16. What are the memory segments  in process ?
  17. Give an example of use of static and extern storage class, Where do we use this ?
  18. What is an array ?, Give an Example
  19. What is string ? Give Examples
  20. What is pointer ? Give an Example
  21. What is size of pointer ?
  22. Difference between pointers and array .
  23. What is NULL pointer ?
  24. What are conditional statements ? Give Examples of each
  25. What is difference between go to statement and break statement ?
  26. What are loops in c ? Give Examples
  27. What is function prototyping ?
  28. What does printf and scanf returns ? Explain with examples .
  29. What is function in c ?What is Call by value and Call by reference passing  ?
  30. What is formal parameters and actual parameters in c ?
  31. What is recursion in c ? Explain with an Examples.
  32. What is Dynamic Memory allocation in c ?Explain each DMA functions with Example .
  33. Difference between static allocation and dynamic allocation ?
  34. What is structure in C ? Explain with Examples.
  35. Access element in structure using structure pointer .
  36. What is union in c ? Explain with Example .
  37. What is difference between structure and unioun ?
  38. What are the modes for file opening ?
  39. What is file handling in c ? Explain different file handling functions in C ?
  40. What is file pointer ?
  41. What is difference between global and static variables in c ?
  42. What is dangling Pointer ?
%d bloggers like this: