C Interview Questions
Questions Answers Views Company eMail

There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.

Yahoo,

5 18069

Given an array of characters, how would you reverse it? How would you reverse it without using indexing in the array?

Microsoft,

1 7527

Given an array of characters which form a sentence of words, give an efficient algorithm to reverse the order of the words (not characters) in it?

3 4956




Concat two string with most overlapped substring has to removeĀ  "abcd"+ "cdef" = "abcdef

6 5835

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

HCL,

895

what r the cpu registers r ther?

1 1746

printf("%d",(printf("Hello")); What it returns?

TCS,

32 35739

WRITE A PROGRAM TO FIND A REVERSE OF TWO NO

7 6261




what is diff between localstatic and globalstatis variable possible 2 use in another file...?

HCL,

2 3013

what is op? for(c=0;c=1000;c++) printf("%c",c);

Trigent,

21 14470

in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?

IBM,

11 22950

who is the founder of c

HP, College School Exams Tests,

19 19241

Who is invented by c?

Mphasis, Infosys,

24 14654

To what value do nonglobal variables default? 1) auto 2) register 3) static

4 6248

Would you rather wait for the results of a quicksort, a linear search, or a bubble sort on a 200000 element array? 1) Quicksort 2) Linear Search 3) Bubble Sort

3 3639


Post New C Questions






Un-Answered Questions { C }

Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)

866


Is Exception handling possible in c language?

821


will u please send me the placement papers to my mail???????????????????

618


string reverse using recursion

1066


can any one provide me the notes of data structure for ignou cs-62 paper

969






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

556


please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com

572


what type of questions arrive in interview over c programming?

848


program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)

894


how to create duplicate link list using C???

1266


Write a c program to demonstrate character and string constants?

932


Between macros and functions,which is better to use and why?

816


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

782


can anyone please tell about the nested interrupts?

852


What is C language ?

772