C Interview Questions
Questions Answers Views Company eMail

What is Heap?

3 4629

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)

891

how to add numbers without using arithmetic operators.

TCS,

14 7661




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 5485

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

Persistent,

3 10345

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

4 21793

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

4 15308

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

Religare, MBT,

20 28811




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

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

26 64464

how is the examination pattern?

Wipro,

871

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 4683

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 17081

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

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 10500

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


Post New C Questions






Un-Answered Questions { C }

Explain output of printf("Hello World"-'A'+'B'); ?

202


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

1863


please send me the code for multiplying sparse matrix using c

1018


Sir i need notes for structure,functions,pointers in c language can you help me please

1247


C program to find all possible outcomes of a dice?

1178






Write a C program linear.c that creates a sequence of processes with a given length. By sequence it is meant that each created process has exactly one child. Let's look at some example outputs for the program. Here the entire process sequence consists of process 18181: Sara@dell:~/OSSS$ ./linear 1 Creating process sequence of length 1. 18181 begins the sequence. An example for a sequence of length three: Sara@dell:~/OSSS$ ./linear 3 Creating process sequence of length 3. 18233 begins the sequence. 18234 is child of 18233 18235 is child of 18234 ........ this is coad .... BUt i could not compleate it .....:( #include #include #include #include int main(int argc, char *argv[]) { int N; pid_t pid; int cont; if (argc != 2) { printf("Wrong number of command-line parameters!\n"); return 1; } N = atoi(argv[1]); printf("Creating process sequence of length %d.\n",N); printf("%d begins the sequence.\n",getpid()); /* What I have to do next ?????? */ }

870


difference between Low, Middle, High Level languages in c ?

865


A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.

549


write a program to find the given number is prime or not

2359


how can use subset in c program and give more example

769


how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions

1953


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

1042


write a proram to reverse the string using switch case?

1459


Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

867


I need previous papers of CSC.......plz help out by posting them.......

975