| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list. | | 3 |
| What is the most efficient way to count the number of bits
which are set in a value? | | 3 |
| Function to find the given number is a power of 2 or not? | Motorola | 12 |
| Describe advantages and disadvantages of the various stock
sorting algorithms | Microsoft | 1 |
| without using arithmatic operator solve which number is
greater?????????? | | 1 |
| What are the uses of pre-processor directives? | | 2 |
| How many ways are there to swap two numbers without using
temporary variable? Give the each logic. | | 6 |
| i want to job in your company, so how it will be possible. | TCS | 2 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
what is the output? | Ramco | 7 |
| How to write a code for random pick from 1-1000 numbers?
The output should contain the 10 numbers from the range
1-1000 which should pick randomly, ie ,for each time we run
the code we should get different outputs. | NetApp | 12 |
| related to rdbms query . | | 1 |
| what is the hexidecimal number of 4100? | Google | 14 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 5 |
| How do you write a program which produces its own source
code as its output? | | 2 |
|
#include<stdio.h>
int SumElement(int *,int);
void main(void)
{
int x[10];
int i=10;
for(;i;)
{
i--;
*(x+i)=i;
}
printf("%d",SumElement(x,10));
}
int SumElement(int array[],int size)
{
int i=0;
float sum=0;
for(;i<size;i++)
sum+=array[i];
return sum;
}
output? | Ramco | 5 |
| how to exchnage bits in a byte
b7<-->b0 b6<-->b1 b5<-->b2 b4<-->b3
please mail me the code if any one know to
rajeshmb4u@gmail.com | Honeywell | 3 |
| Give me basis knowledge of c , c++... | | 4 |
| write a c program to accept a given integer value and print
its value in words | | 3 |
| what information does the header files contain? | BSNL | 5 |
| |
| For more C Interview Questions Click Here |