C Interview Questions
Questions Answers Views Company eMail

What is Heap?

3 7146

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)

1962

how to add numbers without using arithmetic operators.

TCS,

14 13856

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 9682

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

Persistent,

3 12926

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

4 25588

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

4 17781

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

MBT, Religare,

20 48602

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

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

26 75983

how is the examination pattern?

Wipro,

1693

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 7245

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 29075

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

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 18635

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


Post New C Questions

Un-Answered Questions { C }

In which layer of the network datastructure format change is done

1522


Is javascript based on c?

685


What is type qualifiers?

767


What is indirection?

750


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

1826






How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

675


What is calloc in c?

780


What is scope rule in c?

702


Explain logical errors? Compare with syntax errors.

717


What is the difference between array and structure in c?

662


How do I use strcmp?

737


Explain goto?

804


what are the 10 different models of writing an addition program in C language?

1529


What are the types of macro formats?

698


Are there any problems with performing mathematical operations on different variable types?

666