Posts Tagged ‘C Programming’

Difference between C Union and Structure

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 […]

Program to check Prime Number in C

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

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

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

Powered by k2schools