20+ C Pattern Programs

In C, we can use for loop, while loop or do-while loops to print different number, alphabets or star patterns programs. The following programs demonstrate the same by creating triangle, rectangle or other patterns. You may also like : Java Character Pattern Programs   Coding Interview Questions for Java Programmers   Java Tutorial   Pattern […]

c programming

C : Interactive program to print person’s name in abbreviated form

In this article, we will write an interactive C program that reads a person’s full name and prints it in abbreviated form(first initial, then middle initial and then last name). Example : #include <stdio.h> int main() {     char fname[20], mname[20], lname[20];       /* Read the full name */      printf("Enter full name in this format (first […]

c programming

C : Swap two numbers using pointers

In this article, we write a program in c language to exchange the entered two numbers by using pointers.   Example : Exchange 2 numbers using pointers(call by reference) #include <stdio.h> int main() {     int num1, num2, *a, *b, temp;    printf("Enter the value of first number, num1\n");    scanf("%d", &num1);       printf("Enter the […]

10 different Number Pattern Programs in C language

This article covers 10 Number Pattern Programs in C language.   Pattern 1 Enter a number between 1 to 9 : 4    1   121 12321 1234321 /* ============================================================================ Name        : Hello.c Author      : Version     : Copyright   : TopJavaTutorial.com Description : Hello World in C, Ansi-style ============================================================================ */ #include <stdio.h> #include <stdlib.h> int main(void) {   int num, […]

How to setup Eclipse for C/C++ programming in Windows with MinGW

For C/C++ programming you can use IDEs like Visual Studio and Eclipse. While downloading and setting up Visual Studio is straight forward, the eclipse installation has some manual steps. For Eclipse, you would need to download C/C++ CDT. The C/C++ Development Toolkit (CDT) is a collection of Eclipse-based features that provides the capability to create, […]