| Other C Code Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Find the largest number in a binary tree | Infosys | 4 |
| 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 |
| Finding a number which was log of base 2 | NetApp | 1 |
| how to return a multiple value from a function? | Wipro | 1 |
| How to read a directory in a C program?
| | 3 |
| 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 |
| How we will connect multiple client ? (without using
fork,thread) | TelDNA | 2 |
| Program to find the largest sum of contiguous integers in
the array. O(n) | | 5 |
| print a semicolon using Cprogram without using a semicolon
any where in the C code in ur program!!
| Tata-Elxsi | 14 |
| What is "far" and "near" pointers in "c"...? | | 2 |
| Print an integer using only putchar. Try doing it without
using extra storage. | | 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 |
| write a program to Insert in a sorted list | Microsoft | 4 |
| 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 |
| How to return multiple values from a function?
| | 4 |
| How do you write a program which produces its own source
code as its output?
| | 4 |
| Finding a number multiplication of 8 with out using
arithmetic operator | NetApp | 7 |
| How to reverse a String without using C functions ? | Wipro | 8 |
| 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 |
| 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 |
| |
| For more C Code Interview Questions Click Here |