C Interview Questions
Questions Answers Views Company eMail

What is Heap?

3 4694

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

947

how to add numbers without using arithmetic operators.

TCS,

14 7810




if a person is buying coconuts of Rs10,and then sell that coconuts of Rs9,with the loss of one rupee.After that the person became a millaniore.how?

Wipro,

9 5565

a 'c' program to tell that the set of three coordinates lie on a same line

Persistent,

3 10475

write a program to print sum of each row of a 2D array.

4 22124

write a program to arrange the contents of a 1D array in ascending order

4 15407

What will be the output of x++ + ++x?

Religare, MBT,

20 29339




write a Program to dispaly upto 100 prime numbers(without using Arrays,Pointer)

Oracle, TCS, Wipro, Infosys, iFlex, ADITI, Unicops,

26 64774

how is the examination pattern?

Wipro,

911

Find Error if any in below code, Justify ur answer: struct xx { int a; struct yy { char c; struct xx* p; } struct yy* q; }

NDS,

3 4743

main() { int i = 1; int num[] = {1,2,3,4}; num[i] = i++; printf("%d", num[i]); } what will be the output? }

TCS, NDS,

22 17488

#define MAX(x,y) (x) > (y) ? (x) : (y) main() { int i = 10, j = 5, k = 0; k = MAX(i++, ++j); printf("%d %d %d", i,j,k); } what will the values of i , j and k? }

GATE, CDAC, TCS, NDS,

14 27357

fun(int x) { if(x > 0) fun(x/2); printf("%d", x); } above function is called as: fun(10); what will it print? }

NDS,

17 10785

#define DCHAR char* typedef char* TCHAR; if using these following variables will be declared like DCHAR ch1, ch2; TCHAR ch3, ch4; then what will be types of ch1, ch2, ch3 and ch4?

NDS,

6 6068


Post New C Questions






Un-Answered Questions { C }

if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

3366


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

2514


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

244


what is reason of your company position's in india no. 1.

1086


write a program for the normal snake games find in most of the mobiles.

1175






code for quick sort?

886


to find the closest pair

1067


write a program to find out prime number using sieve case?

899


hi send me sample aptitude papers of cts?

932


Can you think of a logic behind the game minesweeper.

1020


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

778


Write a c program to build a heap method using Pointer to function and pointer to structure ?

3513


When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.

768


I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...

8450


How to write a code for reverse of string without using string functions?

880