Quantcast
Channel: Codeforwin
Browsing all 132 articles
Browse latest View live
↧

C program to find first occurrence of a word in a string

Write a C program to read a string from user and find the first occurrence of word in a given string. How to find the first occurrence of a word in a given string in C. How to check whether a string...

View Article


C program to remove first occurrence of a character from string

Write a C program to read any string from user and remove first occurrence of a given character from the string. The program should also use the concept of functions to remove the given character from...

View Article


C program to remove last occurrence of a character from the string

Write a C program to read any string from user and remove the last occurrence of a given character from the string. This program should also use the concepts of functions to remove the last occurrence...

View Article

C program to remove all occurrences of a character from the string

Write a C program to input any string from user and remove all occurrences of a given character from the string. Write a function to remove all occurrences of a character from a string. How to remove...

View Article

C program to find last occurrence of a character in a string

Write a C program to input any string from user and find the last occurrence of a given character in the string. How to find the last occurrence of a given character in the string. Example:Input...

View Article


C program to remove first occurrence of a word from string

Write a C program to input any string from user and remove first occurrence of a given word from string. Write a function to remove first occurrence of a word from the string. How to remove first...

View Article

Image may be NSFW.
Clik here to view.

C program to check Least Significant Bit (LSB) of a number is set or not

Write a C program to input any number from user and check whether the Least Significant Bit (LSB) of the given number is set (1) or not (0). How to check whether the least significant bit of a number...

View Article

C program to check Most Significant Bit (MSB) of a number is set or not

Write a C program to input any number from user and check whether the Most Significant Bit (MSB) of the given number is set (1) or not (0). How to check whether the most significant bit of any given...

View Article


Image may be NSFW.
Clik here to view.

C program to check even or odd using bitwise operator

Write a C program to input any number and check whether the given number is even or odd using bitwise operator. How to check whether a number is even or odd using bitwise operator in C programming. How...

View Article


C program to get value of nth bit of a number

Write a C program to input any number from user and check whether the nth bit of the given number is set (1) or not (0). How to check whether the nth bit of a given number is set or unset using bitwise...

View Article

C program to set nth bit of a number

Write a C program to input any number from user and set nth bit of the given number as 1. How to set nth bit of a given number using bitwise operator in C programming. Setting nth bit of a given number...

View Article

C program to clear nth bit of a number

Write a C program to input any number from user and clear the nth bit of the given number using bitwise operator. How to clear nth bit of a given number using bitwise operator in C programming. How to...

View Article

C program to toggle nth bit of a number

Write a C program to input any number from user and toggle nth bit of the given number using bitwise operator. How to toggle nth bit of a given number using bitwise operator in C programming. C program...

View Article


C program to flip all bits of a binary number

Write a C program to input any number from user and flip all bits of the given number (in binary representation) using bitwise operator. How to flip all bits of a binary number using bitwise operator...

View Article

Image may be NSFW.
Clik here to view.

C program to get highest order set bit of a number

Write a C program to input any number from user and find the highest order set bit of given number using bitwise operator. How to find the highest order of the set bit of a given number using bitwise...

View Article


Image may be NSFW.
Clik here to view.

C program to get lowest order or first set bit of a number

Write a C program to input any number from user and find the lowest order set bit of the given number using bitwise operator. How to find first set bit in a given number using bitwise operator in C...

View Article

Image may be NSFW.
Clik here to view.

C program to count trailing zeros in a binary number

Write a C program to input any number from user and count number of trailing zeros in the given number using bitwise operator. How to find total number of trailing zeros in any given number using...

View Article


Image may be NSFW.
Clik here to view.

C program to count leading zeros in a binary number

Write a C program to input any number from user and find total number of leading zeros of the given number (in binary representation) using bitwise operator. How to find total number of leading zeros...

View Article

C program to count number of 1's and 0's in a binary number

Write a C program to input any number from user and count total number of one's (1's) and zero's (0's) in the given number (in binary representation) using bitwise operator. How to count total number...

View Article

C program to convert decimal to binary number system using bitwise operator

Write a C program to input any decimal number from user and convert it to binary number system using bitwise operator. How to convert from decimal number system to binary number system using bitwise...

View Article
Browsing all 132 articles
Browse latest View live