c interview questions for experienced

/*C program to convert number from decimal to binary*/
 
#include <stdio.h>
 
int main()
{
    int     number,cnt,i;
    int     bin[32];
 
    printf("Enter decimal number: ");
    scanf("%d",&number);
 
    cnt=0;              /*initialize index to zero*/
    while(number>0)
    {
        bin[cnt]=number%2;
        number=number/2;
        cnt++;
    }
 
    /*print value in reverse order*/
    printf("Binary value is: ");
    for(i=(cnt-1); i>=0;i--)
        printf("%d",bin[i]);
 
    return 0;
}

3.83
6
Cliff Hall 95 points

                                    #include &lt;stdio.h&gt;#include &lt;conio.h&gt;long factorial (int n){ &nbsp;&nbsp;&nbsp;if (n==0) &nbsp;&nbsp;&nbsp;return 1; &nbsp;&nbsp;&nbsp;else &nbsp;&nbsp;&nbsp;return (n * factorial(n-1)); //recursion}void main(){ &nbsp;&nbsp;&nbsp;int number; &nbsp;&nbsp;&nbsp;long fact; &nbsp;&nbsp;&nbsp;printf(&quot;Enter a number: &quot;); &nbsp;&nbsp;&nbsp;scanf(&quot;%d&quot;, &amp;number); &nbsp;&nbsp;&nbsp;fact = factorial(number); &nbsp;&nbsp;&nbsp;printf(&quot;The factorial of %d is %ld!\n&quot;, number, fact); &nbsp;&nbsp;&nbsp;getch();}

3.83 (6 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
inteview questions on C general programming questions in c c program question answer coding c program question answer interview questions for c language with answers commonly asked c interview questions basic technical interview questions in c c code interview questions c cod interview questions basic programming questions in c for interview c most asked interview questions c language basic interview questions very basic c programming questions interview c questions interview questions of c language simple c questions on c c programming basic questions c questions and answers for interview c programs asked in interview what is basic c question technical c programming questions c interview programming c interview programming questions and answers c for interview basic c programming interview questions basics of c interview questions with answers question in c language for viva basic c programs for technical interview c programming interview question c program basic questions technical programming questions in c c programming for loop questions c programming technical interview questions coding questions and answers in c how to answer of c program questions interview questions in c language all c basic interview questions how to answer questions asked in c programming coding questions in c for interview coding question in c c programs questions c interview questions for beginners important interview questions in c basics of c interview questions technical interview programming questions in c c basics for interview c questions for experienced interview some basic question on c proframing basic coding questions in c simple c programming interview questions questions on c c programing interview questions c basic interview questions for fresher all c programming questions and answers c interview questions and answers for freshers c programming language interview questions c language basic viva questions programming question in c common c programs asked in interview most asked c programming questions basic c programs questions basic questions on c programming c interview questions is c language good for interview interview questions for fresher in c c language questions programming questions c interview questions c interview questions of c interview questions c programming c language concepts for interview interview question C c programming programs questions and answers interview technical questions in C c programming programs questions and answers c basic programs questions c programming language questions in interviews fun questions about c c interview questions list of best questions on c programming c technical interview questions answers for c programs c programs that are asked in interview questions asked in c language in interview c interview programs for experienced basic c program questions c interview questions for experienced c programs for interview practice basics of c for interview programming questions in c c programing basic questions asked in interview c programing questions asked in interview c programming interview problem interview question in c c interview questions and answers top c interview questions interview coding questions in c interview coding questions in c question in c programming Programming in C questions interview questions in c c programmatic questions basic c questions basic interview questions in c basic interview questions in c language c programming coding interview questions questions for site C interview question of c basic programming questions in c c programming questions c questions and answers interviewer c programming c questions for interview c programming interview questions and answers coding interview questions in c interview c coding questions c programing questions and answers c programs interview questions c programming questions for interviews with answers c interview question c practice questions C programming problems interview c programming questions programs c programming language interview question basic c language questions basic c interview questions c language questions and answers questions on C language c program interview questions questions for C c program questions c programming interview programs best c interview questions interview questions for c programming interview questions for C top c questions for interview c programming basic interview questions c basic interview questions and answers c program question in c answers for c program questions c language program interview questions basic viva questions for c programming c programs viva questions basic c questions for interview Interview questions on C language good question on c coding small programs in c for interview c basic programs for interview basic questions in c c coding interview questions c questions for interview programming questions in c for experienced c basic interview questions c programming interview codes basic c programming questions and answers c programming interview program questions c program questions on loops sample c programming coding questions and answers sample c programming questions and answers c interview coding questions and answers c basic questions for interview Interview basic c questions basic c programming questions c programming for interview coding interview in c basic interview coding questions in c technical interview questions C c programming questions from beginning to advanced c interview programms basic c language interview questions c language basics interview questions technical pi questions in c c programing most asked interview questions c interview questions interview questions on base language simple c programs for interview c programming language examples for interview c basic code questions interview questions in c programing basic programming asked in interview c program interview question interview qsns in c most frequently asked questions in C interview c program coding interview questions c coding round questions and solution c programs for interview basic interview questions on c coding questions in c for placements basic c interview program questions all basic c programs for interview interview questions for experienced C basic c programs for interview logical c programs asked in interviews c question asked in interview common c programs asked in interviews c programs asked in interviews c coding questions for placements c interview simple questions sample c programs for infosys interview important c programs for placements c language interview questions interview questions in c interview programming questions in c c language inter view question interview questions c language interview question on c most asked c programs in interview c questions c interview programming questions interview questions c program interview questions on c basic programs asked in interview interview questions for C++\ most asked codes in interviews c programming basic question c programming interview questions c basic questions python for coding interview
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source