Tuesday, December 16, 2008

C & Data Structures basic questions

Can we use variables inside a switch statement? Can we use floating point numbers? Can we use

What purpose do #if, #else, #elif, #endif, #ifdef, #ifndef serve?

Whats wrong with #define myptr int *?

Can goto be used to jump across functions?

Is C case sensitive (ie: does C differentiate between upper and lower case letters)?

What is the difference between the & and && operators and the | and || operators?

What is a forward reference?

Why can’t you nest structure definitions?

What is type checking?

What is the difference between a statement and a block?

What does the term cast refer to? Why is it used?

What do lvalue and rvalue mean?

Is ++i really faster than i = i + 1?

Should we use goto or not?

What is the difference between if(0 == x) and if(x == 0)?

What are #pragmas?

Is 5[array] the same as array[5]?

Does the ?: (ternary operator) return a lvalue? How can I assign a value to the output of the

Whats wrong with the expression a[i]=i++; ? Whats a sequence point?

Whats short-circuiting in C expressions?

Will C allow passing more or less arguments than required to a function.

How do I pass a variable number of function pointers to a variable argument (va_arg) function?

How can I pass the variable argument list passed to one function to another function.

What does the error, invalid redeclaration of a function mean?

If I have the name of a function in the form of a string, how can I invoke that function?

With respect to function parameter passing, what is the difference between call-by-value and call-

How can I write a function that takes a variable number of arguments? What are the limitations

Can we declare a function that can return a pointer to a function of the same type?

How to declare an array of N pointers to functions returning pointers to functions returning

What are inline functions?


Your Title