C Interview Questions
Questions Answers Views Company eMail

What's a "sequence point"?

3 7008

Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?

7 11761

What's wrong with "char *p; *p = malloc(10);"?

5 13922

I have a function which accepts, and is supposed to initialize,a pointer, but the pointer in the caller remains unchanged.

1 3391

I have a function which accepts a pointer to an int. How can I pass a constant like 5 to it?

3 4949

What does a run-time "null pointer assignment" error mean?

2 7096

what is meant by the "equivalence of pointers and arrays" in C?

Satyam,

3 7803

What is the real difference between arrays and pointers?

Hexaware, Logic Pro, TCS,

27 58635

How do I declare a pointer to an array?

IBM,

6 11881

How can I set an array's size at run time?

9 11557

When you call malloc() to allocate memory for a local pointer, do you have to explicitly free() it?

Aloha Technology,

2 7526

How does free() know how many bytes to free?

8 18252

What's the difference between calloc() and malloc()?

4 7041

What is alloca() and why is its use discouraged?

1 5790

What are .h files and what should I put in them?

3 5009


Post New C Questions

Un-Answered Questions { C }

Can a void pointer point to a function?

560


Why do we use int main?

596


How do you list files in a directory?

553


Explain what is wrong with this program statement? Void = 10;

754


How do you redirect a standard stream?

615






Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1421


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

599


What is the difference between struct and typedef struct in c?

638


Synonymous with pointer array a) character array b) ragged array c) multiple array d) none

605


How macro execution is faster than function ?

656


How important is structure in life?

580


Why double pointer is used in c?

559


What is the total generic pointer type?

714


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2400


What are the advantages of using macro in c language?

581