C Programming INTERVIEW QUESTIONS
Languages
37. | 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. |
38. | When can void pointer and null pointer be used in C?/th> |
---|---|
Void pointer is a generic pointer that can be used to point another variable of any data type. Null pointer is a pointer which is pointing to nothing. |
39. | What is the difference between pre decrement and post decrement operator? |
---|---|
|
40. | 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. |