C Program to get the system information.

C Program to get the system information. We can use the ‘uname’ function to get the system information, which is defined in the “sys/utsname.h” library.Structure is used to hold information returned by the uname function.“uname” function members and their use:sysname returns the name of the operating system in use.release returns the current release level of …

C Program to convert number to words.

Problem Statement Write a C Program to convert number to words. Example: Input: 4562 Output: four thousand five hundred sixty two Solution The program takes a number between 0 and 99999 as input. First, we count the total number of digits in the number. This is done by successively dividing the number by 10 until …

C program to print all the possible permutations of given digits

Write a C program to print all the possible permutations of given digits.Permutations means possible way of rearranging in the group or set in the particular order.Example:Input:1, 2, 3 Output:1 2 3, 1 3 2, 2 1 3, 3 1 2, 2 3 1, 3 2 1Read more about C Programming Language . and read …

C Program to toss a coin using random function.

Write a c program to toss a coin using random function.In this Program,We use the rand()%2 function that will compute random integers 0 or 1.Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can use all the programs on www.c-program-example.com* for personal and …

C program to demonstrate assert macro.

Write a C program to demonstrate assert macro.assert macro defined in assert.h library. assert is mainly used for debugging. assert function checks the conditions at run time, and program executes only if the assert is true otherwise program aborts and shows the error message.Read more about C Programming Language . and read the C Programming …

C Program to solve equations using Jordan elimination method.

Write a C Program to solve equations using Jordan elimination method.Gauss-Jordan elimination method is used to solve the linear equations. In this method, We find the inverse matrix of the coefficients of equations by elementary row operations. Read more about C Programming Language . and read the C Programming Language (2nd Edition) by K and …

C program to Encrypt and Decrypt a password

C Strings:Write a C program to Encryption and Decryption of password.In this program we encrypt the given string by subtracting the hex value from it. Password encryption is required for the security reason, You can use so many functions like hash or other keys to encrypt. Read more about C Programming Language . and read …

C program to demonstrate ceil function.

Write a C program to demonstrate ceil function.ceil is in the C math.h library.ceil function rounds up the smallest next integral value.Example:ceil(2.0) is 2.0ceil(2.1) is 3.0ceil(2.2) is 3.0——ceil(2.9) is 3.0Read more about C Programming Language. /************************************************************ You can use all the programs on www.c-program-example.com* for personal and learning purposes. For permissions to use the* programs …

C program to draw a circle using c graphics.

Write C program to draw a circle using c graphics.In this program we use the graphics.h library function to draw a circle. To use graphics.h, we have to install the drivers in to the the system by using the initgraph() function. In the program circle is the graphic function , which takes three parameters, first …

C Program to compute the difference between two dates.

Write a C program to compute the difference between two dates.In this C Program, We check the date is valid or not and then calculating the No. of days of first date and second date from Jan 1 of first date, then subtract the smaller date from another. Read more about C Programming Language . …