C Interview Questions
Questions Answers Views Company eMail

What is Heap?

3 6839

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)

1856

how to add numbers without using arithmetic operators.

TCS,

14 12858

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 9026

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

Persistent,

3 12648

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

4 25234

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

4 17451

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

MBT, Religare,

20 47300

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

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

26 74391

how is the examination pattern?

Wipro,

1587

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 6876

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

NDS, TCS,

22 27539

#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? }

CDAC, GATE, NDS, TCS,

14 42780

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 17541

#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 8882


Post New C Questions

Un-Answered Questions { C }

What is enumerated data type in c?

613


What is the general form of #line preprocessor?

573


What are variables c?

604


Differentiate between calloc and malloc.

745


What are local static variables? How can you use them?

635






Differentiate between ordinary variable and pointer in c.

609


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

592


Why isn't it being handled properly?

634


what are the different storage classes in c?

654


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

755


What is #include stdio h and #include conio h?

590


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1618


Process by which one bit pattern in to another by bit wise operation is?

608


What is the heap in c?

635


What is conio h in c?

611