Problem Statement Write a subroutine for SIC that will read a record into a buffer. The record may be any length from 1 to 100 bytes. The end of record is marked with a “null” character (ASCII code 00). The subroutine should place the length of the record read into a variable named LENGTH. Solution […]
C Program to a print pascal triangle
Problem Statement Write a program in C to print pascal triangle. How to print a pascal triange in C ?
C Program to delete an element from an array
Problem Statement Write a program in C to delete an element from an array. How to delete an element from an array in C ?
C Program to compare arrays
Problem Statement You need to write a program in C to compare two arrays of characters and display if they are equal or not. How to compare two arrays in C ?
C Program to generate random numbers
Problem Statement Write a program in C to generate 10 random number between 1 and 100. C Program to generate random numbers
C program to compare 2 numbers using ternary operator
Problem Statement Write a program in C to compare 2 numbers without using if statement but instead use the ternary operator. C program to compare 2 numbers using ternary operator
C Program to find the size of the array
Problem Statement Write a program in C to find the array size. How to find the size of the array in C ?
C Program to check number is perfect number or not
Problem Statement Write a program in C to find if the given number is a perfect number or not. A number is said to be a perfect number if it is a positive number and when the sum of its divisors are equal to the number. How to find if the number is a perfect […]
C Program to sort the numbers in descending order
Problem Statement Write a program in C to sort the given numbers in descending order. How to sort the number in descending order in C ?
C Program to sort numbers in ascending order
Problem Statement You need to write a program in C to sort the given numbers in ascending order. How to sort numbers in ascending order in C ?