C Interview Questions
C Interview Questions
-
What is C language ?
-
What does static variable mean?
-
What are the different storage classes in C ?
-
What is hashing ?
-
Can static variables be declared in a header file ?
-
Can a variable be both constant and volatile ?
-
Can include files be nested?
-
What is a null pointer ?
-
What is the output of printf("%d") ?
-
What is the difference between calloc() and malloc() ?
-
What is the difference between printf() and sprintf() ?
-
How to reduce a final size of executable ?
-
Can you tell me how to check whether a linked list is circular ?
-
Advantages of a macro over a function ?
-
What is the difference between strings and character arrays ?
-
Write down the equivalent pointer expression for referring the same element a[i][j][k][l] ?
-
Which bit wise operator is suitable for checking whether a particular bit is on or off ?
-
Which bit wise operator is suitable for turning off a particular bit in a number ?
-
Which bit wise operator is suitable for putting on a particular bit in a number ?
-
Does there exist any other function which can be used to convert an integer or a float to a string ?
-
Why does malloc(0) return valid memory address ? What's the use ?
-
Difference between const char* p and char const* p
-
What is the result of using Option Explicit ?
-
What is the benefit of using an enum rather than a #define constant ?
-
What is the quickest sorting method to use ?
-
When should the volatile modifier be used ?
-
When should the register modifier be used? Does it really help ?
-
How can you determine the size of an allocated portion of memory ?
-
What is page thrashing ?
-
When does the compiler not implicitly generate the address of the first element of an array ?
-
What is the benefit of using #define to declare a constant ?
-
How can I search for data in a linked list ?
-
Why should we assign NULL to the elements (pointer) after freeing them ?
-
What is a null pointer assignment error ? What are bus errors, memory faults, and core dumps ?
-
When should a type cast be used ?
-
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
-
How can I convert a string to a number ?
-
How can I convert a number to a string ?
-
Is it possible to execute code even after the program exits the main() function?
-
What is the stack ?
-
How do you print an address ?
-
Can a file other than a .h file be included with #include ?
-
What is Preprocessor ?
-
How can you restore a redirected standard stream ?
-
What is the purpose of realloc( ) ?
-
What is the heap ?
-
How do you use a pointer to a function ?
-
What is the purpose of main( ) function ?
-
Why n++ executes faster than n+1 ?
-
What will the preprocessor do for a program ?
-
What is the benefit of using const for declaring constants ?
-
What is the easiest sorting method to use ?
-
Is it better to use a macro or a function ?
-
What are the standard predefined macros ?
Comments
Post a Comment