C Aptitude Questions and answers with explanation.

C Aptitude 1C program aptitude questions, answers and explanation for interview preparations.In this site, We discussed various type of C programs, now we are moving into further steps by looking at the c aptitude questions.This questions and answers are helpful to freshers and job hunters. C interview questions are from various companies and experts. Read …

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 merge two arrays.

Arrays in C. Write a C program to merge two arrays.In this program we check the elements of arrays A, B and put that elements in the resulted array C in sorted manner.Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can use …

C Program to search the linked list.

Data structures using C, Write c program to search the linked list.Linked list is a data structure in which the objects are arranged in a linear order. In this program, we sort the list elements in ascending order. Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K …

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 modf function.

Write a C program to demonstrate modf function.modf() defined in the C math.h library.modf function breaks the double/float values to integral part and fractional part. Example: res = modf(3.142, &iptr) returns res=142 and iptr=3. Read more about C Programming Language . and read the C Programming Language (2nd Edition). by K and R. /************************************************************ You can …