C Programming Question and Answers
33. | What is the use of semicolon(;) at the end of every program statement? |
---|---|
|
|
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. | |
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. |
|
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. | |