C-Interview Questions
C-Interview Questions
3 Reverse the nibbles of given 32bit data. inp: 0x12394578, out: 0x87549321
8 Reverse the 64bit binary number and print its hexadecimal number without using %x.
11 Write a program in C to find 3rd element of Linked List from last in single pass.
13 Write a program in C for, Given two arrays 1,2,3,4,5 and 2,3,1,0,5 find which number is not
present in the second array.
14 Reverse the 64bit binary number and print its hexadecimal number without using %x.
15 Extract the alphabets from given string: 123asd35dfA45#$%, output: asddfA
16 Write a program in C to reverse a singly linked list.
17 Write a program in C to find 3rd element of Linked List from last in single pass.
18 Write a program in C to find middle element of a linked list in single pass.
19 Write a program in C for, Given two arrays 1,2,3,4,5 and 2,3,1,0,5 find which number is not
present in the second array. 7. Write a program to extract the binary bits from given two
positions.
A P1 = 2, P2 = 4, extract 4 bits from 2nd bit position onwards in a given number.
20. Check given number is power of 2 or not.