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 11402

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 3589

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

828




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 9889

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 6369

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

TCS,

900

write a proram to reverse the string using switch case?

Syntel,

1520

write a program to concatenation the string using switch case?

870




write a progam to compare the string using switch case?

1 2137

write a program to copy the string using switch case?

Mind Tree,

1694

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

L&T,

5 16145

write a program of bubble sort using pointer?

TCS,

3 22684

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

2 2784

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 2306

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,

3 8891


Post New C Questions






Un-Answered Questions { C }

1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.

1601


‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

1218


what is use of malloc and calloc?

696


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. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

2070


a program that can input number of records and can view it again the record

769






largest Of three Number using without if condition?

245


can we have joblib in a proc ?

958


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1000


write a program to find out prime number using sieve case?

899


using for loop sum 2 number of any 4 digit number in c language

929


Difference between Shallow copy and Deep copy?

882


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

1125


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

1481


write a c program for swapping two strings using pointer

1371


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

241