| Other C Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Write a program to find the given number is odd or even
without using any loops(if,for,do,while) | | 2 |
| main()
{
int i,j,A;
for(A=-1;A<=1;A++)
prinf("%d\t",!!A);
} | | 5 |
| write a program to swap bits in a character and return the value
prototype of function
char fun (char a, charb flag c)
where fun returns a char, char a is a the value char b is
the bit to be changed and flag c is the bit value
for eg: x=fun(45,7,0)
since 45 is 0010 0101
and ow x should contain the value 65 (0110 0101) | Bosch | 1 |
| Design a program using an array that searches a number if it
is found on the list of the given input numbers and locate
its exact location in the list. | | 3 |
| What's the difference between a linked list and an array?
| | 11 |
| what is link list?
| | 2 |
| What is the diffrent between while and do while statement ? | | 5 |
| Software Interview Questions | CAT | 1 |
| struct ptr
{
int a;
char b;
int *p;
}abc;
what is d sizeof structure without using "sizeof" operator?? | Verifone | 8 |
| Find string palindrome 10marks
| Honeywell | 5 |
| What is the meaning When we write "#include" what is # and
what does include does there??? | HCL | 11 |
| How to convert a binary number to Hexa decimal number??
(Note:Do not convert it into binary and to Hexadecimal) | Subex | 1 |
| Write a Program to print this triangle:
*
**
*
****
*
******
*
********
*
**********
use two nested loops. | TCS | 5 |
| plz answer....A program that takes 3 variables e.g a,b,c in
as seperate parameters and rotates the values stored so
that value goes a to b, b to c and c to a . | | 3 |
| can we print any string in c language without using
semicolon(;)(terminator) in whole program. | | 6 |
| Study the Following Points:
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
1. 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 |
| Why preprocessor should come before source code?
| | 2 |
| why r u join this company? give solid resons. | Infosys | 7 |
| How to swap two values using a single variable ?
condition: Not to use Array and Pointer ? | | 4 |
| Given an array of length N containing integers between 1
and N, determine if it contains any duplicates. | SilverKey | 2 |
| |
| For more C Interview Questions Click Here |