| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write one statement equalent to the following two statements
x=sqr(a);
return(x);
Choose from one of the alternatives
a.return(sqr(a));
b.printf("sqr(a)");
c.return(a*a*a);
d.printf("%d",sqr(a));
| TCS | 4 |
| Given an array of numbers, except for one number all the
others occur twice. Give an algorithm to find that number
which occurs only once in the array. | | 1 |
| pgm to find middle element of linklist(in efficent manner) | Huawei | 1 |
| Write a C Programm..
we press 'a' , it shows the albhabetical number is 1, if we
press 'g' it shows the answer 7.. any can help me | | 2 |
| What ios diff. Between %e & %f? | Honeywell | 1 |
| how to print "hai" in c? | | 9 |
| How do I declare an array of N pointers to functions
returning pointers to functions returning pointers
to characters?
| | 1 |
| what is a far pointer | TCS | 8 |
| code snippet for creating a pyramids triangle
ex
1
2 2
3 3 3 | | 2 |
| AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST? | HCL | 9 |
| what is out put of the following code?
#include
class Base
{
Base()
{
cout<<"constructor base";
}
~Base()
{
cout<<"destructor base";
}
}
class Derived:public Base
{
Derived()
{
cout<<"constructor derived";
}
~Derived()
{
cout<<"destructor derived";
}
}
void main()
{
Base *var=new Derived();
delete var;
}
| Honeywell | 2 |
| How can I invoke another program from within a C program? | | 1 |
| proc() {
static i=10;
printf("%d",i);
}
If this proc() is called second time, what is the output?
| Hughes | 5 |
| plz answer..... a program that reads non-negative integer
and computes and prints its factorial | | 1 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 7 |
| What is the difference between big endian form and little
endian form? write a code to convert big endian form to
little endian and vice versa.. | Aricent | 1 |
| What are the different pointer models in c? | | 3 |
| Average of a couple 10 years ago was 25. The average
remains same after having a child and twins after 3 years.
What is the present age of the first child | IBM | 9 |
| What will be the output of
x++ + ++x? | MBT | 10 |
| how many error occurs in C language ? | Wipro | 9 |
| |
| For more C Interview Questions Click Here |