sample c programs for interview

Solutions on MaxInterview for sample c programs for interview by the best coders in the world

showing results for - "sample c programs for interview"
Ana
08 Apr 2019
1/*C program to convert number from decimal to binary*/
2 
3#include <stdio.h>
4 
5int main()
6{
7    int     number,cnt,i;
8    int     bin[32];
9 
10    printf("Enter decimal number: ");
11    scanf("%d",&number);
12 
13    cnt=0;              /*initialize index to zero*/
14    while(number>0)
15    {
16        bin[cnt]=number%2;
17        number=number/2;
18        cnt++;
19    }
20 
21    /*print value in reverse order*/
22    printf("Binary value is: ");
23    for(i=(cnt-1); i>=0;i--)
24        printf("%d",bin[i]);
25 
26    return 0;
27}
queries leading to this page
c questions for interviewwhat is basic c questionc programming language examples for interviewcommon c programs asked in interviewsbasic c programs questionsc programming coding interview questionsc programming interview questions and answersc programming language interview questionquestions for cc code interview questionsc language questions and answersbasic c programming for beginners questionsbasics of c interview questions with answersprogramming questions in cc program coding interview questionsinterview questions cbasic question in cprogramming question in cc language interview questionsc programs questionsmost asked interview questions in ccoding interview questions in cc programming interview questionsbasics of c interview questionstop c programming interview questionsc programs for interviewbasic c questionsinterview question of ctop programs in c for interviewsbasic technical interview questions in cc question asked in interviewquestions on c languagebasic c program questionsc interview questionc interview programmsc program for interviewinterview questions on base languagecoding questions in c for placementsbasic c language questionsall c basic interview questionsc programs asked in interviewsmost asked c programs in interviewbasic coding questions in cbasic viva questions for c programmingtop 10 c programming interview questionsvery basic c programming questionsinterview c coding questionsc language interview questions and answersinterview questions of cc programming interview program questionspython for coding interviewcommon c programs asked in interviewc basic programs questionssample c programming coding questions and answersinterview questions on cbasics of c for interviewsome basic question on c proframingbasic questions on c programmingc programming interview programsquestions on cc program questions and answerscoding interview questions cprogramming questions in c for experiencedtechnical interview questions cc questions for experienced interviewfun questions about cbasic interview questions in c languageinterview programming questions in cc language basic viva questionsanswers for c programsc programming for interviewc interview coding questions and answerslogical c programs asked in interviewsall c programming questions and answersinteview questions on cc language inter view questioninterview questions c programc programming interview codesc questions and answers for interviewinterview questions on c language interview questions of c languagec programming questionssimple answers for c program questionspopular c programming questionsc language basics interview questionsprogramming questions cc basic questions for interviewc programming interview coding questionsc programs asked in interviewc programs that are asked in interviewc interview programming questionsviva questions for c programmingc basics for interviewinterview question in cinterview questions c languagecoding questions and answers in cc programming technical interview questionsc interview questions for experienced interview coding questions in cinterview c questionsbasic c programs for interviewbasic program in c for interviewbasic c programming questionscoding question in cc programs interview questionsbasic questions in cc program question in cmost frequently asked questions in c interviewtop c interview questionstechnical c programming questionsc interview questions and answersc program question and answersc programming question with solutionc language basic questionsc programming problemsinterview questions c programmingc questionsc interview programs for experiencedlist of best questions on c programmingsimple c programming interview questions c interview questionsc basic programs for interviewcommon interview questions for c programminghow to answer of c program questionssimple c questions on cinterview questions for c language with answersbasic interview coding questions in cimportant c programs for placementsprograms for interview in cquestions for c languagec programming interview questionbasic programming questions in c for interviewc interview programming questions and answersbasics of c programming interview questionsc program basic questionstechnical interview programming questions in cbasic c programs for technical interviewinterview questions for c languageinterview coding questions in cc language program interview questionsbasic interview questions on cbasic interview questions in call basic c programs for interviewbasic programming asked in interviewquestions on c programming for interviewgood question on c codingc program questionsc coding interview questionsc programing most asked interview questionsis c language good for interviewinterview questions in c languagequestions for site cquestion in c programmingsmall programs in c for interviewc language questions for interviewc interview questionsbasic c interview program questionsc programming language interview questionsbasic questions of c language with answerssample c programming questions and answersbasic c questions for interviewc programming programs questions and answersc programs for interview practicec basic interview questions and answersbest c interview questionsc interview programming programming in c questionsgeneral programming questions in canswers for c program questionsc program interview questionsc interview questions for beginnersquestions asked in c language in interviewcan i do a coding interview with cinterview questions for c programmingbasic c code asked in interviewc programmatic questionssample c programs for infosys interviewc programming for loop questionsinterviewer c programmingc program question answer codingc program question answerbasic programming questions in ccoding interview in cc basic interview questionsmost asked c programming questionsinterview based questions on cc programs viva questionsc programming language questions in interviewsinterview questions in cmost asked codes in interviewsc language questionsprograms asked in interview in ctop c questions for interviewc coding questions for placementsbasic technical interview questions programs in cc programing basic questions asked in interviewquestion in c language for vivainterview question cc basic code questionssimple c programs for interviewc program interview questionhow to answer questions asked in c programmingc programing questions asked in interviewc language basic questions and answersmost frequent c programing interview questionssimple c programs questionsinterview questions for cc for interviewcoding questions in c for interviewinterview basic c questionsc programing questions and answersc programming programs questions and answersbasic programs asked in interviewinterview c programming questions programsbasic c interview questionsc questions for interviewinterview questions in cc programming basic questionc programming interview problemc cod interview questionsc programming interview questions interview bitbasic c programming interview questionsc programming questions for interviews with answersc programming basic interview questionsc programing interview questionsc basic questionsc programming basic questionsinterview questions on c programmingc basic programming questionsinterview question on cc interview questionsbasic c programming questions and answersc practice questionsc interview simple questionsinterview questions for c 2b 2b 5ctechnical programming questions in cquestion of c programmingc language basic interview questionsc program questions on loopssample c programs for interview