Skip to content

Instantly share code, notes, and snippets.

View rabeeh-ta's full-sized avatar
time is money

Rabeeh T A rabeeh-ta

time is money
View GitHub Profile

Program 1

;multiply two 16 bit numbers and output a 32 bit number

   		AREA MULTIPLY, CODE, READONLY
		ENTRY

		LDR		R0, MEMORY
		LDRH	R1, [R0]

Program 1

#include <stdio.h>
#include <stdlib.h>
int a[50], n;
void create(int a[])
{
    printf("Enter the number of elements to create an array:\t");
    scanf("%d", &n);
    printf("\n Enter the elements to be inserted:\n");

Program 1a

import java.util.Scanner;

public class Student {
    long USN;
    String Name;
    String Branch;

10. Write function to implement sting operation such as compare, concatenate, string length. Convince parameter passing technique.

#include <stdio.h>

char s1[20], s2[20];

int stringlen(char s1[])
{
    int i, len = 0;
    for (i = 0; s1[i] != '\0'; i++)