C program to find the size of double without using sizeof operator Get link Facebook X Pinterest Email Other Apps May 23, 2014 source code: #include<stdio.h> int main() { double *ptr = 0; ptr++; printf("Size of double data type: %d",ptr); getch(); return 0; } Get link Facebook X Pinterest Email Other Apps Comments
8086 STRING MANIPULATION –FIND AND REPLACE A WORD May 03, 2016 ASSUME CS: CODE, DS: DATA DATA SEGMENT LIST DW 53H, 15H, 19H, 02H REPLACE EQU 30H COUNT EQU 05H DATA ENDS CODE SEGMENT START: MOV AX, DATA MOV DS, AX MOV AX, 15H MOV SI, OFFSET LIST MOV CX, COUNT MOV AX, 00 ... Read more
C program for addition of two matrices. July 09, 2014 source code #include<stdio.h> int main() { int a[3][3],b[3][3],c[3][3],i,j; printf("Enter the First matrix->"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&a[i][j]); printf("\nEnter the Second matrix->"); for(i=0;i<3;i++) for(j=0;j<3;j++) scanf("%d",&b[i][j]); printf("\nThe First matrix is\n"); for(i=0;i<3;i++) { printf("\n"); for(j=0;j<3;j++) printf("%d\t",a[i][j]); } printf("\nThe Second matrix is\n"); for(i=0;i<3;i++) { printf("\n"); for(j=0;j<3;j++) printf("%d\t",b[i][j]); } for(... Read more
2 X 2 MATRIX MULTIPLICATION May 03, 2016 ADDRESS OPCODE LABEL MNEMONICS OPERAND COMMENT 8100 MVI C, 00 Clear C reg. 8101 8102 LXI H, 8500 Initialize HL reg. to 4500 8103 8104 8105 LOOP2 LXI D, 8600 Load DE register pair 8106 8107 8108 CALL MUL Call subroutine MUL 8109 810A 810B MOV B,A Move A to B reg. 810C INX H Increment HL register pair . 810D ... Read more
Comments
Post a Comment