| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| class foo {
public:
static int func(const char*& p) const;
};
This is illegal, why? | Google | 6 |
| What's the difference between calloc() and malloc()? | | 3 |
| f=(x>y)?x:y
a) f points to max of x and y
b) f points to min of x and y
c)error
| HCL | 4 |
| WHY DO WE USE A TERMINATOR IN C LANGUAGE? | | 2 |
| what is the output of the following program and explain the
answer
#include<stdio.h>
exp()
{
main(5)
}
main(int a)
{
printf("%d",a);
return;
} | Satyam | 3 |
| can we print any string in c language without using
semicolon(;)(terminator) in whole program. | | 6 |
| how to find that no is int or float? | | 5 |
| define function | Assurgent | 4 |
| Identify the correct argument for the function call fflush
() in ANSI C:
A)stdout
B)stdin
C)stderr
D)All the above
| Accenture | 3 |
| write a function which accept two numbers from main() and
interchange them using pointers? | | 3 |
| To what value do nonglobal variables default?
1) auto
2) register
3) static
| | 4 |
| Which of the following data structures is on average the
fastest for retrieving data:
1) Binary Tree
2) Hash Table
3) Stack
| | 3 |
| 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 are the difference between ANSI C and Let Us c and Turbo C | LG-Soft | 1 |
| please give me some tips for the selection in TCS. | TCS | 3 |
| 1,1,5,17,61,217,?,?. | | 3 |
| Here is alphabets : abcdefgh
1) how to reverse. as hgfedcba
2) after reversal, how to group them in a pair hg fe dc ba.
| | 2 |
| What is the Difference between Macro and ordinary
definition? | Motorola | 2 |
| what is the difference between malloc() and calloc() function? | | 1 |
| what is the difference between arrays and linked list | Tech-Mahindra | 15 |
| |
| For more C Interview Questions Click Here |