Tag: Lab programs

System Software – SIC/XE Program to write a subroutine for SIC that will read a record into a buffer

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 Line Number Code Comments 1 RDREC LDX ZERO   2…

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 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 number or not ?

Liked this content?. Please spread the word :)