Wednesday, September 10, 2014

Brocade Interview

  Telephonic Round:
  Based on C and Data structure.
1. Write a program to check if a number is power of 2 or not
2. Write a program to set and unset a particular bit
3. Write a program to check endianness of a machine.
4. Write a program to generate nth Fibonacci number.
5. Calculate size of a structure. (Wanted to check concept of structure padding)
6. Write a program to check if a binary tree is BST or not.
7. Difference between Char a[] and char *a.
8. Write a program to find out non-repeating number in an array.

1 comment: