C Interview Questions
Questions Answers Views Company eMail

Write a c program to sort six numbers and find the largest one by using the ladder of if-else? plz do help me

2 10389

Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0

4 3385

Please send me WIPRO technical question to my mail ID.. its nisha_g28@yahoo.com please its urgent

720




25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?

TCS, CTS,

11 8985

There are N egg baskets and the number of eggs in each basket is a known quantity. Two players take turns to remove these eggs from the baskets. On each turn, a player must remove at least one egg, and may remove any number of eggs provided they all belong to the same basket. The player picking the last egg(s) wins the game. If you are allowed to decide who is going to start first, what mathematical function would you use to decide so that you end up on the winning side?

Google,

8 5939

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

TCS,

779

write a proram to reverse the string using switch case?

Syntel,

1369

write a program to concatenation the string using switch case?

753




write a progam to compare the string using switch case?

1 1992

write a program to copy the string using switch case?

Mind Tree,

1587

write a program of palindrome(madam=madam) using pointer?

L&T,

5 15059

write a program of bubble sort using pointer?

TCS,

3 21751

suppose there are five integers write a program to find larger among them without using if- else

2 2522

Write a main() program that calls this function at least 10 times. Try implementing this function in two different ways. First, use an external variable to store the count. Second, use a local variable. Which is more appropriate?

2 2140

2. Write a function called hms_to_secs() that takes three int values—for hours, minutes, and seconds—as arguments, and returns the equivalent time in seconds.. Create a program that exercises this function by repeatedly obtaining a time value in hours, minutes, and seconds from the user (format 12:59:59), calling the function, and displaying the value of seconds it returns.

TCS,

2 7452


Post New C Questions






Un-Answered Questions { C }

What is pre-emptive data structure and explain it with example?

2388


writ a program to compare using strcmp VIVA and viva with its output.

655


what is a function method?give example?

1028


Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result

523


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

781






how can use subset in c program and give more example

685


write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...

629


Calculate 1*2*3*____*n using recursive function??

710


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

391


ATM machine and railway reservation class/object diagram

3991


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

9914


Stimulate calculator using Switch-case-default statement for two numbers

1677


show how link list can be used to repersent the following polynomial i) 5x+2

855


hi, which software companys will take,if d candidate's % is jst 55%?

785


Hi can anyone tell what is a start up code?

812