C Languages Interview Questions

25. List out some keywords available in C language?
  Below are some of keywords that C language offers.
  • auto
  • double
  • int
  • struct
  • break
  • else
  • long
  • switch
  • case
  • enum
  • register
  • typedef
  • char
  • extern
  • return
  • union
  • const
  • float
  • short
  • unsigned
  • continue
  • for
  • signed
  • void
  • default
  • goto
  • sizeof
  • volatile
  • do
  • if
  • static
  • while
 
Your Name Your Email-ID
Your Answer
26. What is keyword in C?
 
  • Keywords are pre-defined words in a C compiler. Each keyword is meant to perform a specific function in a C program.
  • Since keywords are referred names for compiler, they can't be used as variable name.
 
Your Name Your Email-ID
Your Answer
27. What are all the sections that a C program may/must have?
  There are many sections in a C program structure. They are
  • Documentation section
  • Link section
  • Definition section
  • Global declaration section
  • Function prototype declaration section
  • Main function
  • User defined function section - main() function section is an important section in a C program as program execution starts from main() function only in C language. A C program may not have all other sections except main() function.
 
Your Name Your Email-ID
Your Answer
28. What is a string?
  String is an array of characters.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 7 of 15