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
Embedded Systems Interview Question:
How is function itoa() written in C?
Submitted by: Administrator#include<stdlib.h>
#include<stdio.h>
int main()
{
int n = 6789;
char p[20];
itoa(n,s,10);
printf("n=%d,s=%s",n,s);
return 0;
}
Submitted by: Administrator
#include<stdio.h>
int main()
{
int n = 6789;
char p[20];
itoa(n,s,10);
printf("n=%d,s=%s",n,s);
return 0;
}
Submitted by: Administrator
char buff[10];
int num_to_be_converted;
scanf("%d", &num_to_be_converted);
itoa(num_to_be_converted, buff, 10);
/* 10 is the base to be converted. it can range from 2 to 32 ..*/
The converted result is stored in string buff.
Submitted by: Aditya
int num_to_be_converted;
scanf("%d", &num_to_be_converted);
itoa(num_to_be_converted, buff, 10);
/* 10 is the base to be converted. it can range from 2 to 32 ..*/
The converted result is stored in string buff.
Submitted by: Aditya
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.
https://InterviewQuestionsAnswers.ORG.