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 17790

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 6065

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

1783

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. ?

CTS, TCS,

11 16936

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 10922

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

TCS,

1703

write a proram to reverse the string using switch case?

Syntel,

2559

write a program to concatenation the string using switch case?

1664

write a progam to compare the string using switch case?

1 3288

write a program to copy the string using switch case?

Mind Tree,

2481

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

L&T,

5 20142

write a program of bubble sort using pointer?

TCS,

3 26072

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

2 4515

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 4037

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,

5 25193


Post New C Questions

Un-Answered Questions { C }

where are auto variables stored? What are the characteristics of an auto variable?

689


What does double pointer mean in c?

675


How do you define a string?

747


Can the size of an array be declared at runtime?

694


What is pass by value in c?

682






Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

735


Is struct oop?

663


i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

719


hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?

1750


.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }

2140


What does c mean in standard form?

709


What is the difference between text and binary i/o?

665


What are 3 types of structures?

688


What is an example of structure?

682


What are the different types of linkage exist in c?

689