0% found this document useful (0 votes)
10 views1 page

C-Interview Questions

The document contains a list of programming tasks, primarily in C, covering various topics such as string manipulation, array operations, linked list handling, and bit manipulation. Examples include replacing words in strings, reversing linked lists, and finding missing numbers in arrays. The tasks range from basic to intermediate programming challenges.

Uploaded by

201it022
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

C-Interview Questions

The document contains a list of programming tasks, primarily in C, covering various topics such as string manipulation, array operations, linked list handling, and bit manipulation. Examples include replacing words in strings, reversing linked lists, and finding missing numbers in arrays. The tasks range from basic to intermediate programming challenges.

Uploaded by

201it022
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1 Write a program to replace a word in a given string.

Ex: rama is a good boy, replace rama with laxman

2 Write a program to split a string based on input character


Ex: rama is a good boy, input char: space, output: Rama, is, a, good, boy

3 Reverse the nibbles of given 32bit data. inp: 0x12394578, out: 0x87549321

4 How do you find the missing number in a given integer array of 1 to n.


Ex: input: 1347, max: 8, output: 2568

5 C Program to find highest frequency element in array.

6 C Program to add two number using recursion.

7 C program to insert element at a given location in Array

8 Reverse the 64bit binary number and print its hexadecimal number without using %x.

9 Extract the alphabets from given string: 123asd35dfA45#$%, output: asddfA

10 Write a program in C to reverse a singly linked list.

11 Write a program in C to find 3rd element of Linked List from last in single pass.

12 Write a program in C to find middle element of a linked list 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.

You might also like