| Other C Code Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Give a one-line C expression to test whether a number is a
power of 2. | Microsoft | 7 |
| Find your day from your DOB? | Microsoft | 12 |
| Write a routine that prints out a 2-D array in spiral order | Microsoft | 2 |
| How to access command-line arguments? | | 4 |
| To Write a C program to remove the repeated characters in
the entered expression or in entered characters(i.e)
removing duplicates. | Synergy | 2 |
| Link list in reverse order. | NetApp | 7 |
| What is "far" and "near" pointers in "c"...? | | 2 |
| Given only putchar (no sprintf, itoa, etc.) write a routine
putlong that prints out an unsigned long in decimal. | | 5 |
| 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 |
| Find the largest number in a binary tree | Infosys | 4 |
| How to reverse a String without using C functions ? | Wipro | 8 |
| Program to find the largest sum of contiguous integers in
the array. O(n) | | 5 |
| 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 |
| 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 |
| write the function. if all the character in string B appear in
string A, return true, otherwise return false. | Google | 7 |
| how to check whether a linked list is circular. | | 3 |
| How we will connect multiple client ? (without using
fork,thread) | TelDNA | 2 |
| How to swap two variables, without using third variable ? | HCL | 28 |
| 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 |
| Write a C function to search a number in the given list of
numbers. donot use printf and scanf | Honeywell | 4 |
| |
| For more C Code Interview Questions Click Here |