Hi, here I post few C lang programming questions, you can try on. I am not covering few very basic C programs. This programs are generally posed in interviews for experienced/freshers in companies such as Qualcomm, Broadcom, securify, moschip, Global Edge, Aricents, Mirafa, Graphene, Mojo Networks, Lantronix, Adtran, Votary Softech. I will be updating this post when I encounter some tricky program. For queries add a comment, I will respond…

Write a code which is best, shortest and efficient…..Or else start with functionally correct code and then try to optimize it.

Be an Embedded Programmer……Be proud to be so…

**String Operations**

- Reverse a string using recursion
- Concatenate two strings
- Reverse alphabets of words in a sentence
- Reverse order of words in a sentence
- Reverse a string without using Temp variable
- Compare strings without strcmp
- Convert capital letters to small and vice versa in a sentence

**Bitwise Operations**

- Swap adjacent bits in a 32bit unsigned integer
- Swap variable values without using temp
- Swap first and last, 2nd and last 2nd bits of a 32bit integer
- Set a bit in a 32bit no.
- Clear a bit in 32bit no.
- Find number of bits high in a number
- Find either a number is divisible by 8 or not ?
- Fun to find a number in a array which repeats odd number of times
- Find either a number is 2s power or not ?
- How to double a number in shortest way?

**Linked List**

- Add a link at Nth position
- Remove a element of certain value from a linked list
- Add a element into a sorted linked list, in a sorted order
- Reverse a single linked list normally and recursively
- Reverse a double linked list
- Binary search on linked list
- Find middle point in a linked list
- Find either linked list is circular?
- Remove duplicates from a sorted linked list
- Program to implement circular Q using arrays

**Pattern Based**

- To print

1

23

345

6789 - To print

1

22

333

4444

55555 - To print

A B C D E D C B A

A B C D C B A

A B C B A

A B A

A - To print Pascal Triangle
- To print Floyd’s Triangle
- To print

*

**

**

***

* *

***

****

* *

* *

****

**General Questions**

- Write a function equivalent to malloc
- Program to find either a system is bigendian or not ?
- Transpose of a matrix
- Matrix multiplication
- Wrapper function to malloc to give ‘x’ aligned addresses
- Perform division without ‘/’ operator
- Function which works as ‘sizeof’
- Generate rand_7 using rand_5 fun
- Rotate a matrix by 90 degrees
- Ascii to Hex conversion
- Find either a number is even/odd/palindrome/prime/armstrong
- Fibonacci series
- Factorial of no.
- Square-root of a number
- Sorting methods(selection/bubble/insertion/quick/heap/merge)
- Search methods(binary/linear)
- Program to demonstrate usage of function pointers.
- What can be the reason if a program on Linux doens’t even enter main().
- How to debug a program on linux with just an executable?
- What all can be the reasons for a application to generate segmentation fault on Linux ?
- Will be updated soon…

**Links** useful to crack interviews on C language

- http://www.indiabix.com/technical/c/
- http://www.indiabix.com/c-programming/questions-and-answers/
- http://career.guru99.com/top-100-c-interview-questions-answers/