C Program to find out the Power of Any Number using Loop

This is a C Program to find out the power of any number using loop. Problem Description We have to create a C Program which calculates the power of any number, by taking the values of base and exponent from the user. Expected Input and Output 1. When base and exponent both are positive If … Read more

advertisement

C Program to Convert a Given Time in 12 AM-PM Format to 24 Hour Military Format

This is a C Program to convert 12-hour AM-PM time format to 24-hour Military time format. Problem Description Given a time in 12-hour AM/PM format, convert it to military (24-hour) time. User has to take input as a string containing a time in 12-hour clock format (i.e.: hh:mm:ssAM or hh:mm:ssPM), where 01 ≤ hh ≤12 … Read more

advertisement

C Program to Implement Variable Length Array

This is a C Program to implement variable length array(Vectors). An array (vector) is a common-place data type, used to hold and describe a collection of elements. These elements can be fetched at runtime by one or more indices (identifying keys). A distinguishing feature of an array compared to a list is that they allow … Read more

advertisement

C Program to Implement Bit Array

This is a C Program to implement Bit Array. A bit array is an array data structure that compactly stores bits. It can be used to implement a simple set data structure. A bit array is effective at exploiting bit-level parallelism in hardware to perform operations quickly. A typical bit array stores bt bits, where … Read more

advertisement

C Program to Check whether a given Character is present in a String, Find Frequency & Position of Occurrence

This is a C program to check whether a given character is present in a string, find frequency & position of occurrence. Problem Description This C Program checks whether a given character is present in a string, find frequency & position of occurrence. Problem Solution This C Program checks whether a given character is present … Read more

advertisement

C Program to Count the Number of Repeated Occurrences of a particular Word in a String

This is a C Program to count the number of repeated occurrences of a particular word in a string. Problem Description This C Program counts the number of repeated occurrences of a particular word in a string. Problem Solution Take input from the user and performs string operations to count the repeated occurrences of a … Read more

advertisement

C Program to Input 2 Binary Strings and Print their Binary Sum

This C Program takes an input to 2 binary strings and print their binary sum. Here is a source code of the C program to input 2 binary strings and print their binary sum. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C … Read more

advertisement

C Program to Find the Sum of ASCII values of all Characters in a String

This is a C Program to find the sum of ascii values of all characters in a string. Problem Description This C Program finds the sum of the ASCII values of all characters that were used in a string. Problem Solution Take input from the user and extract ascii values in the given string as … Read more

advertisement

C Program to Remove all Characters in Second String which are present in First String

This is a C Program to remove all characters in second string which are present in first string. Problem Description This C Program removes all characters from second string which were present in the first string. Problem Solution Take input from the user and perform string operations as shown in the program below. Program/Source Code … Read more

advertisement

C Program which Converts an Integer to String & vice-versa

This is a C Program which converts an integer to string & vice-versa. Problem Description This C Program converts an integer to string and vice-versa. Problem Solution Take input from the user and perform string operations as shown in the program below. Program/Source Code Here is a source code of the C program to convert … Read more

advertisement
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He is Linux Kernel Developer & SAN Architect and is passionate about competency developments in these areas. He lives in Bangalore and delivers focused training sessions to IT professionals in Linux Kernel, Linux Debugging, Linux Device Drivers, Linux Networking, Linux Storage, Advanced C Programming, SAN Storage Technologies, SCSI Internals & Storage Protocols such as iSCSI & Fiber Channel. Stay connected with him @ LinkedIn | Youtube | Instagram | Facebook | Twitter