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 10667

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 3440

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

746




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 9118

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 6038

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

TCS,

802

write a proram to reverse the string using switch case?

Syntel,

1397

write a program to concatenation the string using switch case?

783




write a progam to compare the string using switch case?

1 2025

write a program to copy the string using switch case?

Mind Tree,

1603

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

L&T,

5 15365

write a program of bubble sort using pointer?

TCS,

3 22005

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

2 2575

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 2179

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 7771


Post New C Questions






Un-Answered Questions { C }

how could explain about job profile

702


all c language question

962


what is the role you expect in software industry?

910


1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

1918


.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; }

127






please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code

857


Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff

1050


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

1019


application attempts to perform an operation?

680


How to implement a packet in C

1549


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1026


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

1081


a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f

790


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

2409


what is event driven software and what is procedural driven software?

1201