1. Write a Program to find the given number is even or odd.
a. Using Arithmetic operators.
b. Using bit wise operator
2. Write a program to find the given number is +Ve or -Ve.
a. Using relational
b. Using bitwise
3. Program to find the sum of individual digits in a given number.
4. Program to reverse a given number.
5. Program to print a given number in Hexadecimal format, octal format.
6. Program to print the binary representation of number
a. Ex: 10 -> 1010
b. Ex: 48 -> 11000
7. Program to print binary representation of number
a. Ex: 10 -> 00001010
b. Ex: 48 -> 00011000
8. Program to find the given number is palindrome or not.
9. Program to find the given number is prime or not
10. Program to find the given number is Armstrong or not
11. Program to find the factorial of a given number
12. Program to find the slope of a line.
13. Program to print 1 to 1000 prime, Palindrome, Armstrong numbers.
14. Program to find the biggest number among the given three
a. using control statements
b. Using the Ternary operator or the conditional operator.
15. Find the average and % of the 6 subjects of a student.
16. Setting a bit, clearing a bit, and toggling a bit.
17. Program to swap the nibble in a byte.
18. Program to reverse the bytes in an integer.
a. Ex: 0x11223344 -> 0x44332211
19. A program to know the significance of a volatile keyword
20. Write a program to take the 3-digit numbers as input, and print the square root of
each digit.
21. A program to find whether the given character is an alphabet or not.
22. A program to find whether the given character is a number or not.
23. Program to get the value in 3 bits from a given position.
24. Program to clear 4 consecutive bits from a given position.
25. Program to clear a specific byte in an integer.
26. Program to swap the two variables.(write all possible logics)
27. Find the number of bits that are sufficient to store a given number.
28. Program to reverse a binary representation of a given number.
29. Program to calculate the power bill.
30. Write a calculator program.
31. Print the result of a number divisible by 2 using bitwise operators.
32. Write a program to know the difference b/w call by value and call by reference.
33. Program that illustrate the difference b/w static and auto variables.
34. How do you use an extern variable and function? Write a program.
35. Write a program to know the size of any variable without using the sizeof operator.
36. Write a program to print the binary representation of float number.
37. Write a program find the Endianness of a system.
38. Write a program to sort and array.
39. Write a program to print pattern
*
* *
* * *
40. Write a program to print pattern98+
1 2 3
1 2
41. Write a program to sort the array
Input: {2, 3, 2, 4, 1, 5, 6, 7, 1, 8};
Output: {3, 1, 5, 7, 1, 2, 2, 4, 6, 8};
42. Write a program to print the sum of array elements.
43. Write a program to print the multiplication of odd indexed elements in an array.
44. Write a program to print the multiplication of even elements in an array.
45. Program to find the smallest number in an array.
46. Program to delete an element in an array.
47. Program to count the repeated number of element in an array
Input: { 1, 2, 1, 3, 4, 5 ,2 ,3, 5, 1 }
Output: 1 3 times
2 -> 2 times
3 -> 2 times
4 -> 1 times
5 -> 2 times
48. Write a program to find the Prime numbers in an array.
49. Program to add 2 arrays.
50. Program to pass array 2D array to an Init function to initialize, display function to
display the array elements.
51. Implement the string library functions
a. Strlen()
b. Strchr()
c. Strcpy()
d. Strcmp()
e. Strncpy()
f. Strstr()
g. Strrchr()
52. Program to reverse a string.
a. Ex: “C program” -> “margorp C”
53. Program to reverse sentence.
a. Ex: “all -> “well is all”
54. Write you own functions for library functions
a. Atoi()
b. Atof()
55. number of ovels and consonants in a given [Link] a program to count the
56. Write a program to remove all duplicate charecters in agiven string.
57. Program to convert upper case sting to lower case.
58. Understand the strtok() function behaviour and implement your own strtok.
59. Write a swap function to swap two variables.
60. Write a program to create a data base for students in a class, and display the student
names who passed in distinction.
61. Write program to create a data base for employees in an office, and find the cost to
the company based on their salary.
62. Write a program for linier searching
63. Write a program for binary searching
64. Write a program for stack handling using structures type.
65. Implement a Queue
66. Implement a single linked list
67. Implement double linked list
68. Write program to convert 0x1A234F50 to “1A234F50”
69. Write a program to convert “13” to 0x13.
70. Write a program to convert “1234” to 0x1234
71. Write a function to sum of number using variadic functions
72. Write calculator program using command line arguments use array of functions for
operations.
73. Implement a basic logger function using variadic arguments, with the signature void
log_message(const char *format, ...) that mimics printf
Write a program to call a function that is passed from the command line.
./[Link] PrimeNum 20
./[Link] evenodd 30
a. ./[Link] posneg -20
b.