H

@harshit_singh

Sum of all matrix elements using DMA

C
4 years ago
//Sum of all matrix elements using DMA #include <stdio.h> #include <math.h> void main(){ int a,b,*p,*q,sum=0; printf("ENTER ROWS :\n"); scanf("%d",&a); printf("ENTER ROWS :\n"); scanf("%d",&b); int arr[a][b];

// Display number in LCD

C
4 years ago
#include <stdio.h> #include<math.h> void main(){ int x=12345; int b=10000; int arr[5]; int c; // printf("%d",c); for(int i=0;i<5;i++){

Reverse an array using DMA

C
4 years ago
//Reverse an array using DMA #include <stdio.h> #include<math.h> void main(){ int a,*p1,*p,t; printf("ENTER THE LIMIT OF ARRAY :\n"); scanf("%d",&a); int arr[a],arr1[a]; printf("ENTER ARRAY :\n"); for(int i=0;i<a;i++){

Largest & smallest matrix number using DMA

C
4 years ago
//Largest & smallest matrix number using DMA #include <stdio.h> #include <math.h> void main(){ int a,b,*p,*q,t,c,*r; printf("ENTER ROWS :\n"); scanf("%d",&a); printf("ENTER ROWS :\n"); scanf("%d",&b); int arr[a][b];

find-smallest-number-in-array-using

C
4 years ago
//find-smallest-number-in-array-using #include <stdio.h> #include<math.h> void main(){ int arr[10],*f,*g,*k,t; printf("ENTER ARRAY =\n"); for(int i=0;i<10;i++){ scanf("%d",&arr[i]); } // scanf("%d",&arr[0]);

Compare strings using pointer

C
4 years ago
//Compare strings using pointer #include <stdio.h> #include<string.h> #define limit 100 void main() { int b,count=0; char str[10],str1[10],*ch,*sh; printf("ENTER FIRST STRING =\n"); scanf("%s",&str[0]);

preprocessor

C
4 years ago
//preprocessor #include <stdio.h> #define limit 100 void main(){ #ifdef limit printf("LIMIT IS DEFINE\n"); printf("IF DEF is working\n"); #else printf("LIMIT IS NOT DEFINE\n"); printf("IF DEF is NOT working\n");

Swap two variables with call by reference

C
4 years ago
//Swap two variables with call by reference #include<stdio.h> #include<math.h> void main(){ int a,b,c,*p,*q; p=&a; q=&b; printf("ENTER ANY TWO NUMBER =\n"); scanf("%d",&a); scanf("%d",&b);

copy-one-string-into-another-string

C
4 years ago
#include<stdio.h> #include<string.h> #include<math.h> void main(){ int n; char str[20]; printf("ENTER ANY STRING =\n"); scanf("%s",&str[0]); n=strlen(str); printf("STRING WITH ALTERNATE DISPLAY : ");

Replace a character in string

C
4 years ago
//Replace a character in string #include <stdio.h> #include<string.h> #include<math.h> void main(){ int a,b; char p,q; char str[10]; printf("ENTER THE CHARACTER =\n"); scanf("%c",& p);

Sort names in alphabetical order

C
4 years ago
//Sort names in alphabetical order #include <stdio.h> #include<string.h> #include<math.h> #define limit 100 void main(){ char a,b; int p,j=0; char str[10][10]; char temp[10];

Print ASCII value difference of two strings

C
4 years ago
//Print ASCII value difference of two strings #include <stdio.h> #include<string.h> #include<math.h> #define limit 100 void main(){ char a,b; int p=0,count=0; char str[10],str1[10]; printf("ENTER YOUR FIRST STRING =\n");

Menu driven, function based C program for strings

C
4 years ago
//Menu driven, function based C program for strings #include <stdio.h> #include <string.h> #include <math.h> #define limit 100 void substring(); int count(); void main(){