| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| without a terminator how can we print a message in a printf
() function. | NIIT | 5 |
| write a own function for strstr | LG-Soft | 1 |
| What is the difference b/w main() in C language and main()
in C++. | | 6 |
| Why cann't whole array can be passed to function as value. | | 1 |
| what is the size of an integer variable? | | 1 |
| write a program to find out number of on bits in a number?
| Huawei | 12 |
| Determine the code below, tell me exactly how many times is
the operation sum++ performed ?
for ( i = 0; i < 100; i++ )
for ( j = 100; j > 100 - i; j--)
sum++; | ITCO | 3 |
| What are the uses of pre-processor directives? | | 2 |
| x=2,y=6,z=6
x=y==z;
printf(%d",x)
| HCL | 8 |
| how to sort two array of characters and make a new array of
characters. | Accenture | 1 |
| 1.find the second maximum in an array?
2.how do you create hash table in c?
3.what is hash collision | Qualcomm | 6 |
| difference between my-strcpy and strcpy ? | Geometric-Software | 3 |
| what is output of the following statetment?Printf(“%x”,
-1<<4); ? | | 3 |
| what about "char *(*(*a[])())();"
| Oracle | 2 |
| 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 | 5 |
| suppose we use switch statement and we intilize years name
using enum statement like(jan,feb,mar,------dec) we take
integer value as an input .question is that the month which
we analyz is from 0 to 11 bt if i enter 12 than how he
again starts from begning and print jan | | 1 |
| How to receive strings with spaces in scanf() | | 4 |
| Suppose I want to write a function that takes a generic
pointer as an argument and I want to simulate passing it by
reference. Can I give the formal parameter type void **, and
do something like this?
void f(void **);
double *dp;
f((void **)&dp);
| | 1 |
| What is the real difference between arrays and pointers? | | 11 |
| What do you mean by team?? | | 2 |
| |
| For more C Interview Questions Click Here |