| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| what is the use of #pragma pack, wer it is used? | | 1 |
| Write a program that takes three variables(a,b,c) in as
separate parameters and rotates the values stored so that
value a goes to b,b,to c and c to a | | 2 |
| What is memmove? | Oracle | 1 |
| main()
{
clrscr();
}
clrscr();
| ME | 3 |
| a.One Cannot Take the address of a Bit Field
b.bit fields cannot be arrayed
c.Bit-Fields are machine Dependant
d.Bit-fields cannot be declared as static
Which of the Following Statements are true w.r.t Bit-Fields
A)a,b&c B)Only a & b C)Only c D)All
| Accenture | 2 |
| void main()
{
int i=5;
printf("%d",i++ + ++i);
} | ME | 6 |
| will u give me old quesrion papers for aptitude for L & t
info tech? | L&T | 1 |
| 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 |
| write a program to generate 1st n fibonacci prime number | | 1 |
| program to find middle element of linklist? | Huawei | 1 |
| write a program to sort the elements in a given array in c
language | | 2 |
| when will be evaluated as true/
if(x==x==x)
a) x=1;
b) x=0;
c) x=-1;
d) none | HCL | 3 |
| how we can make 3d venturing graphics on outer interface | Microsoft | 1 |
| Which of the following is not an infinite loop ?
a.while(1){
....
}
b.for(;;){
...
}
c.x=0;
do{
/*x unaltered within theloop*/
...
}while(x==0);
d.# define TRUE 0
...
while(TRUE){
....
}
| TCS | 4 |
| what is the difference between declaration ,defenetion and
initialization of a variable? | LG-Soft | 4 |
| 6. Which of the Following is not defined in string.h?
A)strspn()
B)strerror()
C)memchr()
D)strod()
| Accenture | 1 |
| write a program to find out number of on bits in a number?
| Huawei | 11 |
| WAP TO ACCEPT STRING AND COUNT A COMES N TIMES B COMES N
TIMES C COMES N TIMES D COMES N TIMES AND SO ON.........
AT LAST UNTIL Z COMES N TIMES...............
| | 2 |
| disadvantages of realloc ? | HCL | 1 |
| |
| For more C Interview Questions Click Here |