c interview questions for experienced
#include <stdio.h>#include <conio.h>long factorial (int n){ if (n==0) return 1; else return (n * factorial(n-1)); //recursion}void main(){ int number; long fact; printf("Enter a number: "); scanf("%d", &number); fact = factorial(number); printf("The factorial of %d is %ld!\n", number, fact); getch();}
Also in C:
- celsius to fahrenheit formula
- how to use malloc in c
- Use of memory management unit
- matrix c declaration
- program using if statement in c whether numnber is less eqaul to greater than 50
- sdl out of memery
- how to find the nth row of pascal's triangle in c
- online python to c converter
- fgets langage c
- strtok
- windows block application au demarrage regegit
- gura
- rakshabandhan 2020
- how to check where the last char is in a string c
- c bool
- Hamming Distance ErrorDetection And Correction method c implementation
- print variable c
- int to double c
- sleep in c programming
- htaccess redirect to https
- compile opencv program
- main function in c
- typedef in c
- maximo comun divisor