Overview of C Language Questions and Answers

Read tutorials from Overview of C Language


Question List:

1. What is a static identifier?

2. Describe the history of C programming language.

3. How will you print "Hello World" without semicolon?

4. What are main characteristics of C language?

5. What is volatile keyword?

6. What is keyword auto for?

7. What are the valid places for the keyword break to appear.

8. What is difference between including the header file with-in angular braces < > and double quotes " "

9. What is the purpose of the keyword typedef?

10. What is a token?

11. Which key word is used to perform unconditional branching?

12. Which compiler switch to be used for compiling the programs using math library with gcc compiler?

13. Can the curly brackets { } be used to enclose a single line of code?

14. What are header files and what are its uses in C programming?

15. What is syntax error?

16. Can two or more operators such as and be combined in a single line of program code?

17. Why is it that not all header files are declared in every C program?

18. When is the "void" keyword used in a function?

19. What are compound statements?

20. What is wrong in this statement? scanf("%d",whatnumber);

21. What are comments and how do you insert it in a C program?

22. What are reserved words?

23. Not all reserved words are written in lowercase. TRUE or FALSE?

24. What are run-time errors?

25. What is the difference between functions abs() and fabs()?

26. What is the general form of a C program?

27. What is the use of a semicolon (;) at the end of every program statement?

28. What is Standard Header Files ?

29. What is printf()?

30. What is scanf()?

31. Execution of a C program starts from which function?

32. What are all the sections that a C program may have and must have?

33. What is IDE?

34. What is header file in C language?

35. What is void in C?

36. What is token in C?

37. What are the types of C tokens?

38. What is identifier in C?

39. What is keyword in C?

40. List out some keywords available in C language.

41. What is the syntax for comments in C?

42. What is the use of printf() and scanf() functions?

43. Can we compile a program without main() function?

44. What is a token?

45. What is the difference between getch() and getche()?

46. What is the newline escape sequence?

47. What is the maximum length of an identifier?

48. Write a program to print