| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| what is array? | | 6 |
| design and implement a program that reads floating-points
numbers in a sentinel-controlled loop until the user
terminates the program by entering zero.your program should
determinate and print the smallest,largest and average of
the supplied numbers. | | 1 |
| dibakar & vekatesh..uttejana here..abt ur reply for in
place reversal of linked list..wats p stands for there? | | 1 |
| what is the use of using linked list and array? | Infosys | 9 |
| char ch=10;printf("%d",ch);what is the output | Accenture | 11 |
| i want explaination about the program and its stack reprasetaion
fibbo(int n)
{
if(n==1 or n==0)
return n;
else
return fibbo(n-1)+fibbo(n-2);
}
main()
{
fibbo(6);
}
| | 2 |
| how many error occurs in C language ? | Wipro | 11 |
| for example user gives input as " 20 or 20.0 or rs 20.0 or
20.00 or rs20 and so .. on " and the output should be
stored as " rs.20.00 " in a variable | | 2 |
| any string of bits of length 'n' represents a unique non-
negative integer between.............? | | 2 |
| how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
| TCS | 7 |
| main()
{
int i=400,j=300;
printf("%d..%d");
}
| ME | 8 |
| prototype of sine function. | Cadence | 2 |
| Program to trim a given character from a string. | NetApp | 4 |
| disadvantages of realloc ? | HCL | 1 |
| regarding the scope of the varibles;identify the incorrect
statement:
a.automatic variables are automatically initialised to 0
b.static variables are are automatically initialised to 0
c.the address of a register variable is not accessiable
d.static variables cannot be initialised with any expression
| TCS | 1 |
| who will call your main function in c under linux? | | 2 |
| how can i get this by using for loop?
*
**
*
****
*
****** | Excel | 3 |
| Difference between Class and Struct.
| Motorola | 6 |
| 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 |
| Write a program in c to input a 5 digit number and print it
in words. | | 1 |
| |
| For more C Interview Questions Click Here |