1.Write a c program to find factorial of a given number using pointers
Answers
Answered by
5
Answer:
Program 2: Factorial program in c using pointers
#include<stdio.h>
void findFactorial(int,int *);
int main(){
int i,factorial,num;
printf("Enter a number: ");
scanf("%d",&num);
findFactorial(num,&factorial);
printf("Factorial of %d is: %d",num,*factorial);
Answered by
2
Explanation:
Program 2: Factorial program in c using pointers
#include<stdio.h>
void findFactorial(int,int *);
int main(){
int i,factorial,num;
printf("Enter a number: ");
scanf("%d",&num);
findFactorial(num,&factorial);
printf("Factorial of %d is: %d",num,*factorial);
More items...
Similar questions
Math,
7 days ago
Science,
7 days ago
Math,
15 days ago
Social Sciences,
15 days ago
English,
8 months ago
Social Sciences,
8 months ago
History,
8 months ago