C Languages Interview Questions
5. | What is the difference between variable declaration and variable definition in C? |
---|---|
|
|
6. | What is the difference between auto variables and static variable in C? |
---|---|
|
|
7. | What is the difference between call by value and call by reference? |
---|---|
When using Call by Value, you are sending the value of a variable as parameter to a function. Where Call by Reference sends the address of the variable. Also under Call by Value, the value in the parameter is not affected by whatever operation that takes place, while in the case of Call by Reference, values can be affected by the process within the functions. |
|
8. | What is const pointer in C? |
---|---|
|
|