| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is an object?
| | 2 |
| how do u find out the number of 1's in the binary
representation of a decimal number without converting it
into binary(i mean without dividing by 2 and finding out
the remainder)? three lines of c code s there it
seems...can anyone help | | 2 |
| how to return 1000 variables from functio9n in c?plz give me
code also | | 3 |
| WAP to accept first name,middle name & last name of a
student display its initials? | NIIT | 1 |
| what about "char *(*(*a[])())();"
| Oracle | 2 |
| what is a function pointer and how all to declare ,define
and implement it ??? | Honeywell | 3 |
| what is compiler | | 5 |
| What is the real difference between arrays and pointers? | | 5 |
| what does the following function print?
func(int i)
{
if(i%2)return 0;
eale return 1;
}
main()
{
int =3;
i=func(i);
i=func(i);
printf("%d",i);}
| TCS | 8 |
| How can I allocate arrays or structures bigger than 64K? | | 4 |
| how to add numbers without using arithmetic operators. | | 6 |
| 24.what is a void pointer?
25.why arithmetic operation can’t be performed on a void
pointer?
26.differentiate between const char *a; char *const a;
and char const *a;
27.compare array with pointer?
28.what is a NULL pointer?
29.what does ‘segmentation violation’ mean?
30.what does ‘Bus Error’ mean?
31.Define function pointers?
32.How do you initialize function pointers? Give an example?
33.where can function pointers be used? | | 1 |
| what is the different between if-else and switch statment
(other than syntax) | CTS | 9 |
| how to convert binary to decimal and decimal to binary in C
lanaguage | | 2 |
| 1.write a program to merge the arrays
2.write efficient code for extracting unique elements from a
sorted list of array? | Qualcomm | 1 |
| how to find out the inorder successor of a node in a tree?? | TCS | 2 |
| what is the use of pointers | | 4 |
| f()
{
int a=2;
f1(a++);
}
f1(int c)
{
printf("%d", c);
}
c=?
| Geometric-Software | 2 |
| write a c program to check weather a particluar bit is set
or not? | IBM | 2 |
| main()
{
int i=400,j=300;
printf("%d..%d");
}
| ME | 7 |
| |
| For more C Interview Questions Click Here |