| Other C Code Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| write a program to Insert in a sorted list | Microsoft | 4 |
| how to return a multiple value from a function? | Wipro | 1 |
| How will u find whether a linked list has a loop or not? | Microsoft | 3 |
| What is "far" and "near" pointers in "c"...? | | 2 |
| Program to find the largest sum of contiguous integers in
the array. O(n) | | 5 |
| 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 |
| Given an array of size N in which every number is between 1
and N, determine if there are any duplicates in it. You are
allowed to destroy the array if you like. | Microsoft | 8 |
| Link list in reverse order. | NetApp | 7 |
| how to return a multiple value from a function? | Wipro | 4 |
| How can u say that a given point is in a triangle?
1. with the co-ordinates of the 3 vertices specified.
2. with only the co-ordinates of the top vertex given. | | 1 |
| 1)
int i=5;
j=i++ + i++ + i++;
printf("%d",j);This code gives the answer 15.But if we
replace the value of the j then anser is different?why?
2)int i=5;
printf("%d",i++ + i++ + i++);
this givs 18. | Infosys | 3 |
| program to Reverse a linked list | Ness-Technologies | 3 |
| Write a function to find the depth of a binary tree. | Adobe | 4 |
| You are given any character string. Find the number of sets
of vowels that come in the order of aeiou in the given
string. For eg., let the given string be DIPLOMATIC. The
answer returned must be "The number of sets is 2" and "The
sets are "IO and AI". Vowels that form a singleton set must
be neglected. Try to post the program executable in gcc or
g++ or in java. | | 2 |
| 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 the function. if all the character in string B appear in
string A, return true, otherwise return false. | Google | 7 |
| Given only putchar (no sprintf, itoa, etc.) write a routine
putlong that prints out an unsigned long in decimal. | | 5 |
| 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 |
| String reverse with time complexity of n/2 with out using
temporary variable. | NetApp | 7 |
| to remove the repeated cahracter from the given caracter
array.
i.e..,
if the input is SSAD
output should of
SAD | Synergy | 6 |
| |
| For more C Code Interview Questions Click Here |