| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| An interactive c program to read basic salary of 15
persons. each person gets 25% of basic as HRA, 15%of basic
as conveyance allowances, 10%of basic as entertainment
allowances.The total salary is calculated by adding
basic+HRA+CA+EA.Calculate how many out of 15 get salary
above 10,000.Rs also print the salary of each employee | | 2 |
| Hi,
main()
{
}
Is a user defined function or Built in Functionn | Honeywell | 9 |
| How to use c/c++ code in JAVA | Satyam | 7 |
| which will be first in c compiling ,linking or compiling
,debugging. | Sonata | 3 |
| why should i select you? | Wipro | 18 |
| why division operator not work in case of float constant? | | 1 |
| what is the diference between pointer to the function and
function to the pointer? | | 2 |
| what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means.... | TCS | 1 |
| Write code for atoi(x) where x is hexadecimal string. | Adobe | 2 |
| write a program to swap Two numbers without using temp variable. | HP | 22 |
| How does free() know how many bytes to free? | | 5 |
| what is dangling pointer? | LG-Soft | 1 |
| Evaluate the following:
int fn(int v)
{
if(v==1 || v==0)
return 1;
if(v%2==0)
return fn(v/2)+2;
else
return fn(v-1)+3;
}
for fn(7);
1) 10
2) 11
3) 1
| | 6 |
| how many keywords do C compile? | Microsoft | 2 |
| What do you mean by team?? | | 2 |
| program to find a smallest number in an array | Microsoft | 5 |
| swap two integer variables without using a third temporary
variable? | | 2 |
| What will be printed as the result of the operation below:
#include<..>
int x;
int modifyvalue()
{
return(x+=10);
}
int changevalue(int x)
{
return(x+=1);
}
void main()
{
int x=10;
x++;
changevalue(x);
x++;
modifyvalue();
printf("First output:%d\n",x);
x++;
changevalue(x);
printf("Second output:%d\n",x);
modifyvalue();
printf("Third output:%d\n",x);
} | | 2 |
| program to find the ASCII value of a number | | 5 |
| what is the difference between <stdio.h> and "stdio.h" | Kanbay | 5 |
| |
| For more C Interview Questions Click Here |