jituTechnology

jituTechnology

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

A program to calculate the factorial and square of given number using call by reference.

A program to calculate the factorial and square of given number using call by reference. Codes /*A program to calculate the factorial and square of given number using call by reference*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void fact(int,int*,int*); main() { inta,fac,sqr; printf(“Enter the number: “); scanf(“%d”,&a); fact(a,&fac,&sqr); printf(“Factorial = […]

read more

A program to swap the content of two integer variable using call by reference.

A program to swap the content of two integer variable using call by reference. Codes /*A program to swap the content of two integer variable using call by reference*/ /*Programed by          Jitendra Kr Yadav                         10116                         2Apr,2011*/ #include<stdio.h> #include<conio.h> void swap(int*, int *); main() { inta,b; printf(“Enter the value of a and b:\n”); scanf(“%d%d”,&a,&b); […]

read more

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator

A program to print the direct and indirect address and its content using “address of operator” and “indirection operator”. Codes /*A program to print the direct and indirect address and its content*/ /*Programed by          Jitendra Kr Yadav                         10116                         2 Apr,2011*/ #include<stdio.h> #include<conio.h> main() { int x; int *pt; printf(“Enter the number: “); scanf(“%d”,&x); […]

read more