C Interview Questions
Questions Answers Views Company eMail

who will call your main function in c under linux?

2 3898

Write a Program to print this triangle: * ** * **** * ****** * ******** * ********** use two nested loops.

MIT, TCS,

12 21089

What is the difference between null pointer and void pointer

CTS, Manforce, MAQ Software,

9 35685




why r u join this company? give solid resons.

TCS, IBM, Infosys,

16 17311

Write a C program that computes the value ex by using the formula ex =1+x/1!+x2/2!+x3+3!+………….

1 9824

what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???

NSN,

2 4704

main() { float a=8.8; double b=8.8; if(a==b) printf("Equal"); else printf("not equal"); getch(); } what is the output? with reason

CSC,

6 6771

plssssss help !!....using array.. turbo c.. create a program that will accept number of words to be consored. .a word must not exceed 10 characters long .the text to be entered will be no longer than 200 characters .there will be no 10 words example: enter number of words to be censor: 5 enter words to censor: windows office microsoft bill gates enter text to censor: bill gates founded microsoft and makes office and windows sample output: founded and makes and

1 3973




number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.

3 4382

Convert the following expression to postfix and prefix X $ Y Z - M + N + P / Q / (R + S)

2 4938

Convert the following expression to postfix and prefix (A+B) * (D-C)

Satyam,

3 4847

plz answer..... a program that reads non-negative integer and computes and prints its factorial

2 3129

plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 3188

plz answer....A program that takes 3 variables e.g a,b,c in as seperate parameters and rotates the values stored so that value goes a to b, b to c and c to a .

3 4235

plz answer.... write a program that reads line (using getline) e.g."345", converts each line to an integer using "atoi" and computes the average of all the numbers read. also compute the standard deviation.

1 1953


Post New C Questions






Un-Answered Questions { C }

2) Write a program that will help Air Traffic Control for an airport to view the sequence of flights ready for take-off. The airport can accommodate 10 flights waiting for take-off at any point in time. Each flight has a unique 3 digit numeric identifier.  Each time a flight takes-off, Air Traffic Control adds a flight to the waitlist. Each time a flight is added to the waitlist, the list of flights waiting to take-off must be displayed.  When a flight is cleared for take-off, Air Traffic Control removes the flight from the waitlist. Each time a flight takes-off, the list of flights waiting to take-off must be displayed.  Sequence of take-off is the sequence of addition to the waitlist

1790


Write a C program that will accept a hexadecimal number as input and then display a menu that will permit any of the following operations to be carried out: Display the hexadecimal equivalent of the one's complement. (b) Carry out a masking operation and then display the hexadecimal equivalent of the result. (c) Carry out a bit shifting operation and then display the hexadecimal equivalent of the result. (d) Exit. If the masking operation is selected, prompt the user lor the type of operation (bitwise and, bitwise exclusive or, or bitwise or) and then a (hexadecimal) value for the mask. If the bit shifting operation is selected. prompt the user for the type of shift (left or right), and then the number of bits. Test the program with several different (hexadecimal) input values of your own choice.

3571


what type of questions arrive in interview over c programming?

848


C program to find all possible outcomes of a dice?

1166


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

572






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

1940


FILE PROGRAMMING

1005


Write a progarm to find the length of string using switch case?

825


i got 75% in all semester am i eligible for your company

1014


write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3

887


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

726


HOW TO SOLVE A NUMERICAL OF LRU IN OS ??????

1497


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)

866


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

1552


Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.

856