jituTechnology

jituTechnology

Uncategorized

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

A program to calculate the area and perimeter of the rectangle using macro.

A program to calculate the area and perimeter of the rectangle using macro. Codes /*A program to calculate the area and perimeter of the rectangle using macro*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> #define AREA l*b #define PERIMETER 2*(l+b) main() { int l,b; printf(“Enter the length and […]

read more

A program to swap the two integer variable using call by value.

A program to swap the two integer variable using call by value. Codes /*A program to find the factorial of a number using recursive function*/ /*Programed by          Jitendra Kr Yadav                          10116                          15 Mar,2011*/ #include<stdio.h> #include<conio.h> void swap(int,int); main() { int a,b; printf(“Enter the value of ‘a’ and ‘b’:\n”); scanf(“%d%d”,&a,&b); swap(a,b); getch(); […]

read more


Connect with Me

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

Calendar

September 2019
S M T W T F S
« Jun    
1234567
891011121314
15161718192021
22232425262728
2930