Pages

Monday, June 7, 2010

C Interview Questions

What is C language ?

What does static variable mean?

What are the different storage classes in C ?

What is hashing ? WWW.ALLWALKIN.BLOGSPOT.COM

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 ?
WWW.ALLWALKIN.BLOGSPOT.COM
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 ?
WWW.ALLWALKIN.BLOGSPOT.COM
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 ?
WWW.ALLWALKIN.BLOGSPOT.COM
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 ?

What is a const pointer ?

What is a pragma ?

What is #line used for ?

What is the difference between text and binary modes ?

How do you determine whether to use a stream function or a low-level function ?

What is static memory allocation and dynamic memory allocation ?

When should a far pointer be used ?

What is the difference between far and near ?

When would you use a pointer to a function ?

How are pointer variables initialized ?

How can you avoid including a header more than once ?

Difference between arrays and pointers ?
WWW.ALLWALKIN.BLOGSPOT.COM
What are the advantages of the functions ?

Is NULL always defined as 0 ?

What is the difference between NULL and NUL ?

Can the sizeof operator be used to tell the size of an array passed to a function ?

Is using exit() the same as using return ?

Can math operations be performed on a void pointer ?

Can the size of an array be declared at runtime ?

Can you add pointers together ? Why would you ?

Are pointers integers ?

How do you redirect a standard stream ?

What is a method ?

What is the easiest searching method to use ?

What is indirection ?

How are portions of a program disabled in demo versions ?

What is modular programming ?

How can you determine the maximum value that a numeric variable can hold ?

How reliable are floating-point comparisons ?

How many levels deep can include files be nested ?
WWW.ALLWALKIN.BLOGSPOT.COM
What is the difference between declaring a variable and defining a variable ?

How can I make sure that my program is the only one accessing a file ?

How can I sort a linked list ?

Is it better to use malloc() or calloc() ?

What does it mean when a pointer is used in an if statement ?

Array is an lvalue or not ?

Differentiate between an internal static and external static variable ?

What is the difference between a string and an array ?

What is an argument ? differentiate between formal arguments and actual arguments ?

What are advantages and disadvantages of external storage class ?

What is a void pointer ?

What is storage class and what are storage variable ?

What is a static function ?

What is a function and built-in function ?

What are the advantages of auto variables ?

What are the characteristics of arrays in C ?


WWW.ALLWALKIN.BLOGSPOT.COM

1 comment:

Anonymous said...

Hi

I like this post:

You create good material for community.

Please keep posting.

Let me introduce other material that may be good for net community.

Source: Why should we hire you?

Best rgs
Peter

Receive All Free Updates Via Facebook.