C Programming Question and Answers

33. What is the use of semicolon(;) at the end of every program statement?
 
  • It has to do with the parsing process and compilation of the code.
  • A semicolon acts as a delimiter, so that the compiler knows where each statement ends, and can proceed to divide the statement into smaller elements for syntax checking.
 
Your Name Your Email-ID
Your Answer
34. What is the difference between single equal "=" and double equal "==" operators in C?
  Single equal is an assignment operator used to assign the values to the variables. But, double equal is relational operator used to compare two variable values whether they are equal or not.
 
Your Name Your Email-ID
Your Answer
35. What is "&" and "*" operators in C?
  "*" Operators is used as pointer to a variable.
Example: * a where * is pointer to the variable a.
& operator is used to get the address of the variable.
Example: &a will give address of a.
 
Your Name Your Email-ID
Your Answer
36. What is the use of "# define" in C?
  #define is a pre-processor directive which is used to define constant value. This constant can be any of the basic data types.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 9 of 15