Interview Questions Answers.ORG
Interviewer And Interviewee Guide
Interviews
Quizzes
Home
Quizzes
Interviews PC Hardware Interviews:80858086A + (Plus) HardwareA+ and Basic PCBasic ComputerBIOSCD-ROM DriveComputer ArchitectureComputer Architecture And DesignCPU (Central Processing Unit)ECDLElectronicsEmbedded SystemsFloppy DiskHard Disk (HD)Hardware and Software DesignHardware DesignIntel MicroprocessorLaptop Hardware RepairerMicroprocessorMotherboardRAMx86Zip Drive
Copyright © 2018. All Rights Reserved
Hardware and Software Design Interview Question:
Can recursive programs be written in C++, Write a recursive program to calculate factorial in C++?
Submitted by: Administrator#include #include int fact (int ); void main() { int n, a; cout<<"enter any value"; cin>>n; a=fact(n); cout<< a; getch(); } int fact (int x) { if((x==0) || (x==1)) return 1; else return(x*(x-1)); }
Submitted by: Administrator
Submitted by: Administrator
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.