| Other C Code Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is the main difference between STRUCTURE and UNION? | | 3 |
| 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 |
| 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 |
| Print an integer using only putchar. Try doing it without
using extra storage. | | 1 |
| Finding a number multiplication of 8 with out using
arithmetic operator | NetApp | 7 |
| 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 |
| how to return a multiple value from a function? | Wipro | 1 |
| plz send me all data structure related programs | | 2 |
| 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 |
| 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 |
| Write a program that find and print how many odd numbers in
a binary tree | | 1 |
| Program to find the largest sum of contiguous integers in
the array. O(n) | | 5 |
| write a program to Insert in a sorted list | Microsoft | 4 |
| String reverse with time complexity of n/2 with out using
temporary variable. | NetApp | 7 |
| how to return a multiple value from a function? | Wipro | 4 |
| Given a list of numbers ( fixed list) Now given any other
list, how can you efficiently find out if there is any
element in the second list that is an element of the
first list (fixed list) | Disney | 2 |
| Link list in reverse order. | NetApp | 7 |
| programming in c lanugaue programm will errror error with
two header file one as stdio.h and other one is conio.h | | 1 |
| how can u draw a rectangle in C | Wipro | 24 |
| |
| For more C Code Interview Questions Click Here |