C Interview Questions
Questions Answers Views Company eMail

A B C D E F G F E D C B A A B C D E F F E D C B A A B C D E E D C B A A B C D D C B A A B C C B A A B B A A A

2 3688

how to print 2-D array using a single for loop?

Mind Tree, TCS, Value Labs,

2 5408

Write a C program to get the desired output. 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 . . . 1 n..............n 1 Note: n is a positive integer entered by the user.

4 6456




If an old women's age is the same as her three grand daughters i,mean the number of days old child=the no of weeks old child=no of months old child .The total yrs of all these ppl is 114 yrs...then how old is the old woman? the yr has 365 days..and 30 days each month.

TCS,

1 3062

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.

TCS,

1122

Rapunzel walks into the forest of forgetfullness. She meets a Lion who lies on Monday Tuesdays and Wednesdays and meets a rabbit who lies on Thurs fridays and saturdays . On that day both say that "I lied yesterday". What day is it .

TCS,

3 4112

A woman had somany gloves and hats 22 red,34 blue, 45 white...there was power cut and she took a glove and how many gloves shud she take so that she gets a pair of glove fr each color??

TCS,

3 4140

if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.

TCS,

1 3402




when user give a number it multiply with 9 without useing '+' and '*' oprator

4 2583

multiple of 9 without useing +,* oprator

3 2779

Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

1802

what is the flow of execution in cprogram? ex:printf();,scanf();

2 3709

wtite a program that will multiply two integers in recursion function

TCS,

4 12572

/*what is the output for the code*/ void main() { int r; r=printf("naveen"); r=printf(); printf("%d",r); getch(); }

CDAC,

1 2072

Write the test cases for checking a variable having value in range -10.0 to +10.0?

Bosch,

1001


Post New C Questions






Un-Answered Questions { C }

write an algorithm to display a square matrix.

1429


while initialization of array why we use a[][2] why not a[2][]...?

1213


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

2119


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1003


please explain every phase in the "SDLC" in the dotnet.

1486






write a c program to find the largest and 2nd largest numbers from the given n numbers without using arrays

1127


difference between object file and executable file

4417


simple program of graphics and their output display

815


code for quick sort?

912


int far *near * p; means

2308


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

962


provide an example of the Group by clause, when would you use this clause

1013


What is the difference between test design and test case design?

890


4. main() { int c=- -2; printf("c=%d",c); }

624


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

1721