C Interview Questions
Questions Answers Views Company eMail

What's a "sequence point"?

3 4956

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

7 6211

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

5 8737




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

1 2274

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

3 3265

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

2 5591

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

Satyam,

3 5739

What is the real difference between arrays and pointers?

Hexaware, TCS, Logic Pro,

27 45443




How do I declare a pointer to an array?

6 8275

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

9 7590

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

Aloha Technology,

2 5025

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

8 12806

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

4 4771

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

1 4452

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

3 3061


Post New C Questions






Un-Answered Questions { C }

i want to know the procedure of qualcomm for getting a job through offcampus

1158


what is a function method?give example?

1029


how to capitalise first letter of each word in a given string?

667


provide an example of the Group by clause, when would you use this clause

871


PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE

688






How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

820


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

1403


write a program to display all prime numbers

672


#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??

737


1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

1494


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

782


write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.

2382


code for quick sort?

762


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

771


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

728