| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How would you find a cycle in a linked list?
| | 2 |
| What is macro? | IBM | 3 |
| Why the use of alloca() is discouraged?
| Oracle | 2 |
| what is the return value (status code) of exit() function....
what the arguments(integer value) passed to it means.... | TCS | 1 |
| main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}
| CitiGroup | 3 |
| what are the uses of structure? | HCL | 3 |
| What is the difference between null pointer and void pointer | CTS | 2 |
| 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 |
| Who had beaten up hooligan "CHAKULI" in his early college days? | | 1 |
| can i know the source code for reversing a linked list with
out using a temporary variable?
| Honeywell | 3 |
| 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 | | 3 |
| What is the output for the program given below
typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}
| ADITI | 2 |
| declare afunction pointer to int printf(char *)? | HCL | 1 |
| Which of these statements are false w.r.t File Functions?
i)fputs() ii)fdopen() iii)fgetpos() iv)ferror()
A)ii B)i,ii C)iii D)iv
| Accenture | 3 |
| write a program for even numbers? | | 6 |
| In scanf h is used for | BFL | 2 |
| the format specified for hexa decimal is
a.%d
b.%o
c.%x
d.%u
| TCS | 3 |
| What is the Difference between Macro and ordinary
definition? | Motorola | 2 |
| Write a program for the following series:
1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms | Convex-Digital | 4 |
| prototype of sine function. | Cadence | 2 |
| |
| For more C Interview Questions Click Here |