| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How do you write a program which produces its own source
code as its output? | | 2 |
| to find out the reverse digit of a given number | Infosys | 5 |
| main()
{
printf(5+"good morning");
printf("%c","abcdefgh"[4]);
}the o/p is morning and e...how someone explain | | 1 |
| what is the difference between normal variables and pointer
variables.............. | Satyam | 7 |
| who will call your main function in c under linux? | | 2 |
| write a program for even numbers? | | 8 |
| what is call by value and call by reference | | 2 |
| Can we include one C program into another C program if yes how? | Infosys | 4 |
| what will happen if you free a pointer twice after
allocating memory dynamically ? | Novell | 2 |
| what are the various memory handling mechanisms in C ? | HP | 3 |
| 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 |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| what is the difference between. system call and library
function? | CDAC | 2 |
| write a program to check whether a given integer is a strong
number or not?
[Hint:
145=1!+4!+5!
=1+24+120
=145]
| | 2 |
| What are the phases in s/w developed life cycle?
wat is the diff b/w stack & queue...where do we use stack | | 5 |
| hat is a pointer? | Assurgent | 3 |
| what is mallloc()?how it works? | Excel | 3 |
| Which of the following about automatic variables within a
function is correct ?
a.its type must be declared before using the variable
b.they are local
c.they are not initialised to zero
d.they are global.
| TCS | 3 |
| program to find a smallest number in an array | Microsoft | 5 |
| 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 |
| |
| For more C Interview Questions Click Here |