C Programs
Fibonacci Triangle
In this program, we are getting input from the user for the limit for fibonacci triangle, and printing the fibonacci series for the given number…
Number Triangle
Like alphabet triangle, we can write the c program to print the number triangle. The number triangle can be printed in different ways. Let’s see…
Alphabet Triangle
There are different triangles that can be printed. Triangles can be generated by alphabets or numbers. In this c program, we are going to print…
Number in Characters
Number in characters conversion: In c language, we can easily convert number in characters by the help of loop and switch case. In this program,…
Decimal to Binary
Decimal to binary in C: We can convert any decimal number (base-10 (0 to 9)) into binary number(base-2 (0 or 1)) by c program. Decimal…
Matrix multiplication
Matrix multiplication in C: We can add, subtract, multiply and divide 2 matrices. To do so, we are taking input from the user for row…
C Program without main
We can write c program without using main() function. To do so, we need to use #define preprocessor directive. Let’s see a simple program to…
Assembly code in C
We can write assembly program code inside c language program. In such case, all the assembly code must be placed inside asm{} block. Let’s see…
Print “hello” Without
We can print “hello” or “hello world” or anything else in C without using semicolon. There are various ways to do so: Using if Using…
Swap Number
We can swap two numbers without using third variable. There are two common ways to swap two numbers without using third variable: By + and…