For PPS VIVA and END SEM EXAM SHORT QUESTIONS
For PPS VIVA and END SEM EXAM SHORT QUESTIONS
C Programming Basics
15. What is the difference between simple if, if-else, and nested if-else statements?
16. How does the switch-case statement work? What are its limitations?
17. Compare the for, while, and do-while loops with examples.
18. What is the purpose of break, continue, and exit statements?
19. How does the goto statement work? Why is it generally avoided?
Arrays
Functions
Strings
Pointers
File Handling
46. What are text and binary files? How do they differ?
47. How do you create, read, and write to a file in C?
48. What is random access in files?
49. How do you handle errors in file operations?
Preprocessor