| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| WAP – represent a char in binary format
| Motorola | 4 |
| How to find the given no is odd or even without checking of
any condition and loops. (Hint: Using array) | | 4 |
| what is the difference between strcpy() and memcpy() function? | | 1 |
| writw a program to insert an element in the begning of a
doubly linked list | | 1 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 4 |
| if array a conatins 'n' elements and array b conatins 'n-1'
elements.array b has all element which are present in array
a but one element is missing in array b. find that
element. | Zycus-Infotech | 9 |
| Write code for initializing one dimentional and two
dimentional array in a C Program? | Deshaw | 5 |
| what is the output of the following program?
main()
{
int c[]={2,8,3,4,4,6,7,5};
int j,*p=c,*q=c;
for(j=0;j<5;j++)
{
printf("%d",*c);
++q;
}
for(j=0;j<5;j++)
{
printf("%d",*p);
++p;
}
} | | 4 |
| There is a 100-story building and you are given two eggs.
The eggs (and the building) have an interesting property
that if you throw the egg from a floor number less than X,
it will not break. And it will always brake if the floor
number is equal or greater than X. Assuming that you can
reuse the eggs which didn't broke; you got to find X in a
minimal number of throws. Give an algorithm to find X in
minimal number of throws. | | 2 |
| enum day = { jan = 1 ,feb=4, april, may}
what is the value of may?
a)4 b)5 c)6 d)11
e)none of the above
| HCL | 2 |
| write a program that print itself even if the source file is
deleted? | | 1 |
| what is link list?
| | 2 |
| if ENTERED FIVE DIGITS DESIGN A PROGRAM THAT WILL FIND
CORRESPONDING VALUE FROM ASCII TABLE | | 1 |
| char ch=10;printf("%d",ch);what is the output | Accenture | 11 |
|
#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 |
| What is the purpose of Scanf Print, getchar, putchar,
function? | | 2 |
| what is the difference between
const char *p, char const *p, const char* const p
| Accenture | 4 |
| What is the diffences between Windows XP and Windows Visa
| Aricent | 1 |
| C program to find frequency of each character in a text
file? | | 3 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 3 |
| |
| For more C Interview Questions Click Here |