A frequent reader of this site sent this in. No answers, but a nice set of questions. Consider getting Kernighan and Ritchie title if you find many things puzzling here.
- What does static variable mean?
- What is a pointer?
- What is a structure?
- What are the differences between structures and arrays?
- In header files whether functions are declared or defined?
- What are the differences between malloc() and calloc()?
- What are macros? What are the advantages and disadvantages?
- Difference between pass by reference and pass by value?
- What is static identifier?
- Where are the auto variables stored?
- Where does global, static, local, register variables, free memory and C Program instructions get stored?
- Difference between arrays and linked list?
- What are enumerations?
- Describe about storage allocation and scope of global, extern, static, local and register variables?
- What are register variables? What are the advantage of using register variables?
- What is the use of typedef?
- Can we specify variable field width in a scanf() format string? If possible how?
- Out of fgets() and gets() which function is safe to use and why?
- Difference between strdup and strcpy?
- What is recursion?
- Differentiate between a for loop and a while loop? What are it uses?
- What are the different storage classes in C?
- Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?
- What is difference between Structure and Unions?
- What the advantages of using Unions?
- What are the advantages of using pointers in a program?
- What is the difference between Strings and Arrays?
- In a header file whether functions are declared or defined?
- What is a far pointer? where we use it?
- How will you declare an array of three function pointers where each function receives two ints and returns a float?
- What is a NULL Pointer? Whether it is same as an uninitialized pointer?
- What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
- What does the error 'Null Pointer Assignment' mean and what causes this error?
- What is near, far and huge pointers? How many bytes are occupied by them?
- How would you obtain segment and offset addresses from a far address of a memory location?
- Are the expressions arr and *arr same for an array of integers?
- Does mentioning the array name gives the base address in all the contexts?
- Explain one method to process an entire string as one unit?
- What is the similarity between a Structure, Union and enumeration?
- Can a Structure contain a Pointer to itself?
- How can we check whether the contents of two structure variables are same or not?
- How are Structure passing and returning implemented by the complier?
- How can we read/write Structures from/to data files?
- What is the difference between an enumeration and a set of pre-processor # defines?
- What do the 'c' and 'v' in argc and argv stand for?
- Are the variables argc and argv are local to main?
- What is the maximum combined length of command line arguments including the space between adjacent arguments?
- If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
- Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
- What are bit fields? What is the use of bit fields in a Structure declaration?