C Languages Interview Questions

53. What are Keywords?
 
  • Keywords are certain reserved words that have standard and pre-defined meaning in C.
  • These keywords can be used only for their intended purpose.
 
Your Name Your Email-ID
Your Answer
54. What is pointer in c?
 
  • Pointer is a variable that stores/points the address of another variable. Normal variable stores the value of the variable whereas pointer variable stores the address of the variable.
  • syntax: data_type * var_name;
  • Where, * is used to denote that "p" is pointer variable and not a normal variable.
 
Your Name Your Email-ID
Your Answer
55. What is the difference between while and do while loops in C?
 
  • While loop is executed only when given condition is true.
  • Whereas, do while loop is executed for first time irrespective of the condition.
  • After executing while loop for first time, then condition is checked.
 
Your Name Your Email-ID
Your Answer
56. Which functions in C can be used to append a string to another string?
  The strcat function. It takes two parameters, the source string and the string value to be appended to the source string.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 14 of 15