Skip to content
OnesAndZeroverse

OnesAndZeroverse

  • Home
  • About us

C Practice Programs

Programs on numbers

  1. Find the Sum of digits of a given number
  2. Reverse the digits of a given number
  3. Find the value of x power y
  4. Print the first n prime numbers
  5. Factorial of a number
  6. Fibonacci series
  7. Find the LCM of given two numbers
  8. Find the HCF of given two numbers

Bit operations

  1. Find the number of set bits of a given number
  2. Set, clear, toggle a given bit of a given number
  3. Set, clear, toggle n bits from position p of a given number
  4. Reverse the digits of a given hex value
  5. Reverse the bits in a given number
  6. Replace n bits from position p in x variable with y variable
  7. Implement rotation of bits of a given number

1-D Arrays

  1. Assign a 1-D array with random values
  2. Remove prime numbers in an array
  3. Find the largest and smallest element in an Array
  4. Find the Second largest and second smallest element in an Array
  5. Reverse the elements in an Array
  6. Find the duplicate elements in an array and remove them

Strings

  1. Write a function to store string from stdin dynamically.
  2. Remove vowels in a given string
  3. Convert the case of characters for a given sentence
  4. Reverse the given sentence or string
  5. Reverse words in the given sentence
  6. Replace a selected word with a given word for a given sentence

Miscellaneous

  1. Find whether the system is Little Endian or Big Endian.
  2. Convert the data in a variable to Big Endian
  3. Convert binary to decimal
  4. Convert decimal to binary
  5. Swap the values of two variables without using third/temporary variable
  6. Find the given number is palindrome or not

Recent Posts

  • 2-D Arrays in C
  • 2-D Arrays with pointers
  • Arrays in C
  • Basics of C
  • Behind a C program
  • C Practice Programs
  • C Programs - (Arrays)
  • C Programs - (Bit Operations)
  • C programs - (Miscellaneous)
  • C Programs - (Numbers)
  • C Programs (strings)
  • Circular Double Linked list
  • Circular single linked list
  • Coming soon
  • conditional statements in c
  • Data Structures with C
  • Datatypes in c
  • Double linked lists
  • Endianness
  • Errors in C
  • First linux kernel module
  • Functions in C
  • Home
  • Introduction to C
  • Introduction to Linux Kernel
  • Linux device drivers
  • Lists in linux kernel
  • Loops in C
  • Module parameters in linux kernel
  • Operators in C
  • Pointers in C
  • Pointers with 1-D Arrays
  • Preprocessor directives
  • printf and scanf
  • Privacy Policy
  • Sample programs
  • Single linked lists
  • Storage Classes in C
  • Strings in C
  • strings in c
  • Structures in C
  • The Big O Notation
  • Type casting
  • Unions in c
  • About us
  • I2C Communication Protocol

Recent Comments

No comments to show.

our universe

  • C programming language
  • Linux operating system
  • Linux kernel

Latest news

I2C Communication Protocol

February 21, 2024

Maintainer

Ramesh Barnikala

Benguluru, India

[email protected]

SOCIAL

For more updates and connections, follow us on social media

© onesandzeroverse.com