jituTechnology

jituTechnology

Uncategorized

A program to merge two given string using pointer.

A program to merge two given string using pointer. Codes /*A program to merge two given string using pointer*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<string.h> #include<stdio.h> #include<conio.h> void merge(char*,char*); main() { char str_1[20],str_2[20]; printf(“Enter the first string: “); gets(str_1); printf(“Enter the second string: “); gets(str_2); merge(&str_1[0],&str_2[0]); printf(“The merged string is: %s.”,str_1); […]

read more

A program to find the length of given string using pointer and function.

A program to find the length of given string using pointer and function. Codes /*A program to find the length of given string using pointer and function*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> main() { char string[20]; int count=0; char *ptr; printf(“Enter the string: “); gets(string); for(ptr=&string[0];*ptr!=’\0′;ptr++) if(*ptr!=’ ‘) count+=1; […]

read more

A program to sort the elements of an array using pointer and function.

A program to sort the elements of an array using pointer and function. Codes /*A program to sort the elements of an array using pointer and function*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void sort(int, int*); main() { intn,i,a[20]; printf(“Enter the no of input to be taken:”); scanf(“%d”,&n); printf(“Enter the […]

read more

A program to pass a pointer to array as an argument to a function and print the content of an array.

A program to pass a pointer to array as an argument to a function and print the content of an array. Codes /*A program to pass a pointer to array as an argument to a function and print the content of an array*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void […]

read more

A program to find the smallest element in an array using pointer.

A program to find the smallest element in an array using pointer. Codes /*A program to find the smallest element in an array using pointer*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void smallest(int, int*); main() { intn,a[20]; printf(“Enter the no of input to be taken:”); scanf(“%d”,&n); printf(“Enter the input:\n”); for(int […]

read more


Connect with Me

GPO 8973 NPC 541; Kathmandu Nepal
Phone: +977 9851236800

Calendar

March 2024
S M T W T F S
 12
3456789
10111213141516
17181920212223
24252627282930
31