| Other C Code Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a program that find and print how many odd numbers in
a binary tree | | 1 |
| What is the main difference between STRUCTURE and UNION? | | 3 |
| print numbers till we want without using loops or condition
statements like specifically(for,do while, while swiches,
if etc)!
| | 7 |
| 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. | Wipro | 2 |
| Write out a function that prints out all the permutations of
a string.
For example, abc would give you abc, acb, bac, bca, cab,
cba. You can assume that all the characters will be unique. | Microsoft | 3 |
| Find the largest number in a binary tree | Infosys | 4 |
| program to find the roots of a quadratic equation | | 1 |
| 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.
| Microsoft | 4 |
| write the function. if all the character in string B appear in
string A, return true, otherwise return false. | Google | 7 |
| Finding a number which was log of base 2 | NetApp | 1 |
| How do I write a program to print proper subset of given
string . Eg :input: abc
output:{},{a},{b},{c},{a,b},{a,c},{b,c},
{a,b,c}.I desperately need this program please mail me to
saravana6m@gmail.com | Deshaw | 8 |
| Write, efficient code for extracting unique elements from
a sorted list of array.
e.g. (1, 1, 3, 3, 3, 5, 5, 5, 9, 9, 9, 9) -> (1, 3, 5, 9).
| Microsoft | 8 |
| Give a very good method to count the number of ones in a 32
bit number.
(caution: looping through testing each bit is not a solution) | Microsoft | 4 |
| Finding a number multiplication of 8 with out using
arithmetic operator | NetApp | 7 |
| Write a routine to draw a circle (x ** 2 + y ** 2 = r ** 2)
without making use of any floating point computations at all. | Microsoft | 2 |
| program to Reverse a linked list | Ness-Technologies | 3 |
| Give a one-line C expression to test whether a number is a
power of 2. | Microsoft | 7 |
| plz send me all data structure related programs | | 2 |
| why java is platform independent? | Wipro | 6 |
| Program to find the largest sum of contiguous integers in
the array. O(n) | | 5 |
| |
| For more C Code Interview Questions Click Here |