| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is sparse file? | | 1 |
| what will be the output:
main(){char ch;int a=10;printf("%d",ch);} | Wipro | 29 |
| hi how to convert program from notepad to turboc editor can
u please help me | | 1 |
| why division operator not work in case of float constant? | | 1 |
| AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? | HCL | 12 |
| write a program that print itself even if the source file is
deleted? | | 1 |
| difference between function & structure | Verizon | 5 |
| Toggle nth bit in a given integer - num | Qualcomm | 2 |
| the number 138 is called well ordered number because the
three digits in the number (1,3,8) increase from left to right
(1<3<8). the number 365 is not well ordered coz 6 is larger
than 5.
write a program that wull find and display all possible
three digit well ordered numbers.
sample:
123,124,125,126,127,128,129,134
,135,136,137,138,139,145,146,147
148
149,156.......789 | | 3 |
| write a program to swap Two numbers without using temp variable. | HP | 22 |
| 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 |
| two variables are added answer is stored on not for third
variable how it is possible? | | 3 |
| can we print any string in c language without using
semicolon(;)(terminator) in whole program. | | 6 |
| how to add numbers without using arithmetic operators. | TCS | 10 |
| how to copy a string without using c function | | 5 |
| how many keywords do C compile? | Microsoft | 2 |
| void swap(int a,int b)
{
a=a+b;
b=a-b;
a=a-b;
}
in this code always gives the same result for all case | TCS | 7 |
| 10. Study the code:
void show()
main()
{
show();
}
void show (char *s)
{
printf("%sn",s);
}
What will happen if it is compiled & run on an ANSI C
Compiler?
A)It will compile & nothing will be printed when it is
executed
B)it will compile but not link
C)the compiler will generate an error
D)the compiler will generate a warning
| Accenture | 4 |
| What is RAM memory? and What is ROM?Who designed one is
temparary and another is permanent?why they designed like
that?By using far pointer which type data(whether
hexadecimal)we can access? | Excel | 1 |
| main()
{
char *p;
p="Hello";
printf("%c\n",*&*p);
}
| ME | 2 |
| |
| For more C Interview Questions Click Here |