</>
CodeWithZohaib
Toggle theme
Connect
Add
C Programming Guide
All Topics
Basic Concepts (1-20)
Advanced Topics (21-40)
Pointers & Memory
Structures & Unions
File Handling
1. What is C?
2. How does a for loop work in C?
3. What is an if-else statement?
4. Explain nested for loops.
5. How does an if-else if-else structure work?
6. What is the purpose of a while loop?
7. How is the do-while loop different from while loop?
8. How do you declare an array in C?
9. Explain the use of break in loops.
10. How does the continue statement work in a loop?
11. What is a switch-case statement?
12. What is recursion in C?
13. What are infinite loops?
14. How can we print even numbers using a for loop?
15. What is a nested if statement?
16. What is an array index?
17. Explain the concept of nested while loops.
18. What is the purpose of the else statement in an if condition?
19. Explain the use of nested if-else structures.
20. How can we print odd numbers using a for loop?
21. What is a pointer in C?
22. What is NULL pointer?
23. How do you allocate memory dynamically in C?
24. What is a structure in C?
25. What is the difference between malloc() and calloc()?
26. Explain the use of the typedef keyword.
27. What is a union in C?
28. How can you pass a structure to a function?
29. What is the purpose of the #define preprocessor?
30. What are file handling functions in C?
31. How do you write data to a file in C?
32. What is the purpose of the fseek() function?
33. Explain the concept of function pointers.
34. What are command-line arguments?
35. How do you use fgets() for reading strings?
36. What is the difference between ++i and i++?
37. How do you find the size of a structure?
38. What is the void pointer?
39. How do you sort an array in C?
40. Explain the concept of memory leaks.