The basic difference between structure and union is size difference i.e. When we are working with structure, the size of the structure is some all member variable size but in union maximum size of a member variable. When working with union, memory will be occupied for only one member which is going to get maximum […]

## Posts Tagged ‘C Programming’

## Program to check Prime Number in C

July 12th, 2016 admin

What is Prime number? Prime number is whole number(integer) which has two factors 1 and itself. Some of prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, …etc and 4,6,8,9,12,14,15 …. are not prime numbers. Program to check Prime number in C

## Armstrong number example in C

July 12th, 2016 admin

Armstrong number is a number, which is equal to sum of digits raise to the power total number of digits in the number. Some Armstrong numbers are: 0, 1, 2, 3, 153, 370, 407, 1634, 8208 etc. Examples: 153=1^3+5^3+3^3=1+125+9=153 1634=1^4+6^4+3^4+4^4=1+1296+81+256=1634 Check whether given three digit number is Armstrong number or not:

## C programming shortcuts keys

July 11th, 2016 admin

Shortcuts key Usage ALT+F9 Compile CTRL+F9 Run ALT+F5 Output F7 Trace CTRL+F7 Watch F5 Minimize or Maximize F6 Next F2 Save