C Interview Questions
Questions Answers Views Company eMail

What's a "sequence point"?

3 7412

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

7 12366

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

5 14431

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

1 3586

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

3 5210

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

2 7313

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

Satyam,

3 8064

What is the real difference between arrays and pointers?

Hexaware, Logic Pro, TCS,

27 60249

How do I declare a pointer to an array?

IBM,

6 12351

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

9 12207

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

Aloha Technology,

2 7766

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

8 18794

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

4 7435

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

1 5944

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

3 5274


Post New C Questions

Un-Answered Questions { C }

How arrays can be passed to a user defined function

670


Is a house a mass structure?

744


what is the different bitween abap and abap-hr?

1836


how to print the character with maximum occurence and print that number of occurence too in a string given ?

2125


How is a macro different from a function?

742






Explain the difference between ++u and u++?

738


What are terms in math?

682


How can you convert integers to binary or hexadecimal?

706


What are the functions to open and close file in c language?

815


Explain what are multidimensional arrays?

688


Which header file should you include if you are to develop a function which can accept variable number of arguments?

916


How is a structure member accessed?

690


will u please send me the placement papers to my mail???????????????????

1456


Study the following C program :call_me (myvar)int myvar;{ myvar +- 5; }main(){int myvar;myvar = 3;call_me(myvar);printf("%d ",myvar);What will be printed a) 3 b) 5 c) 8 d) symbol

763


Can we assign integer value to char in c?

718