Starter Tutorials Blog
Tutorials and articles related to programming, computer science, technology and others.
Subscribe to Startertutorials.com's YouTube channel for different tutorial and lecture videos.
Home » Page 58

C program to find number of duplicate elements in an array

Suryateja Pericherla Categories: Arrays. No Comments on C program to find number of duplicate elements in an array

In this article we will learn to implement a C program to find number of duplicate elements in an array. A C program is provided below which reads a list of number and prints the number of duplicates in a given array.   Note: This program only works if the numbers are repeated for 2 […]

Read the rest of this entry »

C program to print prime numbers up to n

Suryateja Pericherla Categories: Others. No Comments on C program to print prime numbers up to n

In this article we will learn to implement a C program to print prime numbers up to n. A C program is provided below which accepts n as input from user and prints all the prime numbers up to n.   The program is as follows: #include <stdio.h> #include <conio.h> #include <math.h> int main() { […]

Read the rest of this entry »

C program to print a pattern of numbers

Suryateja Pericherla Categories: Patterns. No Comments on C program to print a pattern of numbers

In this article we will learn to implement a C program to print a pattern of numbers. A C program is given below for printing a numbers pattern.   Given starting number of a pattern and value of n, print the pattern as given below   If starting value = 3 and n = 4 then […]

Read the rest of this entry »

C program to swap the contents and indexes in an array

Suryateja Pericherla Categories: Arrays. 3 Comments on C program to swap the contents and indexes in an array

In this article we will learn to implement a C program to swap the contents and indexes in an array. A C program is provided below for swapping the array element with the corresponding array index number.   Given an array with size n and its contents are from 0 to n-1. Swap the index […]

Read the rest of this entry »

C program to print a pattern

Suryateja Pericherla Categories: Patterns. No Comments on C program to print a pattern

In this article we will learn to implement a C program to print a pattern. The following C program prints the below pattern for n = 4. 1*2*3*4*17*18*19*20 5*6*7*14*15*16 8*9*12*13 10*11   The program is as follows: #include <stdio.h> #include <conio.h> int main() { int n = 4; int lstart = 1; int rstart = […]

Read the rest of this entry »

Basic array programs in Java

Suryateja Pericherla Categories: Arrays. No Comments on Basic array programs in Java

In this post we are going to look at some very basic and frequently asked array programs in Java interviews . Different programs are written as separate functions in the class ArrayClass. These programs are restricted to integers. Following programs are available: Reading elements into an array Printing elements in an array Printing the sum of […]

Read the rest of this entry »

Files in C Programming Language

Suryateja Pericherla Categories: C Programming. No Comments on Files in C Programming Language

This article provides a comprehensive overview of files in C programming language along with relevant examples.   So far we have been using scanf and printf functions for reading and writing data to the console. This is fine as long as the data is less.   However, many real world problems involve large amounts of […]

Read the rest of this entry »

Unions in C language with example

Suryateja Pericherla Categories: C Programming. No Comments on Unions in C language with example

In this article you will learn about Unions in C language. First you will learn what is a Union, its syntax and then an example program demonstrating unions in C language.     However, there is a major difference between them in terms of memory allocation.       Like structure, a union can be […]

Read the rest of this entry »
Facebook
Twitter
Pinterest
Youtube
Instagram
Blogarama - Blog Directory