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 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 the Recursive function.

Write a C program to demonstrate the recursive function.Recursion  is the programming technique that a process invoking itself again and again. In this program, We reverse the given number and checks it is a palindrome or not. Read more about C Programming Language . /************************************************************ You can use all the programs on www.c-program-example.com* for personal …

C Program to find GCD and LCM using Recursion

C Program to find the GCD and LCM. In this program we used the Recursion method. Recursion is the programming technique that a process invoking itself again and again. Here find_gcd() and find_(lcm) are the recursive methods. for example LCM and GCD of 8,12 is 24 and 4 Read more about C Programming Language . …

C program to print Fibonacci numbers using Recursion

C Program to print Fibonacci numbers. In this program we used the Recursion method. Recursion is the programming technique that a process invoking itself again and again. Fibonacci numbers are sequence of numbers starts from 0 and 1 , continue by adding previous number. 0,1,1,2,3,5,8,13,…….. Read more about C Programming Language . /************************************************************ You can …

C Program to calculate factorial using Recursive function

C Program to find the factorial of a number. In this program we used the Recursion method. Recursion is the programming technique that a process invoking itself again and again. The standard recursive function for factorial is factorial=n*fact(n-1). factorial of number denoted by ‘!’, means product of all non negative integers from 1 to number. …