| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| if a five digit number is input through the keyboard, write
a program to calculate the sum of its digits.
(hint:-use the modulus operator.'%') | | 9 |
| 1,1,5,17,61,217,?,?. | | 3 |
| what is the differnce between AF_INET and PF_INET? | Wipro | 2 |
| Name the language in which the compiler of "c" in written? | Bajaj | 1 |
| Can I pass constant values to functions which accept structure
arguments? | | 2 |
| what is the difference between c and java? | | 1 |
| main()
{
char *p1="Name";
char *p2;
p2=(char *)malloc(20);
while(*p2++=*p1++);
printf("%s\n",p2);
}
| CitiGroup | 4 |
| write a program to swap Two numbers without using temp variable. | HP | 22 |
| 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 |
| what is the difference between getch() and getchar()? | | 5 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 2 |
| difference of two no's with out using - operator | | 6 |
| how to find the size of the data type like int,float
without using the sizeof operator? | | 7 |
| code snippet for creating a pyramids triangle
ex
1
2 2
3 3 3 | | 3 |
| WRITE A C PROGRAM TO FIND SECOND BIGGEST VALUE FROM THE
GIVEN VALUES | | 1 |
| do ne body have any idea about the salary for the we r going
to have interview.
yup .. u got it right ..i m talking abt NIC. | | 1 |
| disadvantages of realloc ? | HCL | 1 |
| What's the difference between a linked list and an array?
| | 11 |
| how to find that no is int or float? | | 5 |
| write a program to arrange the contents of a 1D array in
ascending order | | 3 |
| |
| For more C Interview Questions Click Here |