C Interview Questions
Questions Answers Views Company eMail

write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?


what is printf

Satyam, MVSR,

5 2894

Write a program for print infinite numbers


3 5374

3. Program to print all possible substrings. ex: String S St Str Stri Strin String t tr tri trin tring r


3 19886

write a pgm to print 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1

3 3621

main() { int x=2, y=4 if ((x==2||y==4) x++ y++ if (y==4+1) { x=x+y; } y++; printf("The values of x and y are %d and %d."x,y); } What is the output?


5 3846

void main() {int i=2; printf("%d%d%d",i,++i,i++); getch(); }

9 2708

Input is "Jack and jill went up a hill" To print output is 1-letter word(s)-1 2-letter words-1 3-letter words-1 4-letter words-4

TCS, Mind Tree,

1 3802

Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.


what is stack , heap ,code segment,and data segment


How to swap 3 numbers without using 4th variable?

5 15298

write a program that will read the temperature in Celsius and convert that into Fahrenheit.

1 2921

write a program to print the one dimensional array.

1 3296

how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?


Is an array parameter is always "by reference" ?

1 1548

Post New C Questions

Un-Answered Questions { C }

what is the diffrenet bettwen HTTP and internet protocol


how to construct a simulator keeping the logical boolean gates in c


`write a program to display the recomended action depends on a color of trafic light using nested if statments


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays


write a c program for swapping two strings using pointer


I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.


what is bit rate & baud rate? plz give wave forms


what will be maximum number of comparisons when number of elements are given?


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }


Why is it important to memset a variable, immediately after allocating memory to it ?


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1


write a program to rearrange the array such way that all even elements should come first and next come odd


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 ?????? */ }


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.