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 5258

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

Mind Tree, TCS, Value Labs,

2 6958

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 8291

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 4158

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,

1777

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 6322

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 5886

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 4482

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

4 4368

multiple of 9 without useing +,* oprator

3 4368

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.

2643

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

2 5010

wtite a program that will multiply two integers in recursion function

TCS,

4 14939

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

CDAC,

1 3143

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

Bosch,

1808


Post New C Questions

Un-Answered Questions { C }

In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2670


write a program to find the given number is prime or not

3821


Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?

649


please send me the code for multiplying sparse matrix using c

1710


What is meant by operator precedence?

662






What are the features of c language?

611


Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250

1493


What is unary operator?

649


What is c language and why we use it?

606


cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration

626


What is enumerated data type in c?

613


Can you return null in c?

586


What is structure packing in c?

594


Explain how can I avoid the abort, retry, fail messages?

581


Write a program to print “hello world” without using semicolon?

663