Embedded System Question:
How is function itoa() written in C?

Answer:
#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;
}
#include<stdio.h>
int main()
{
int n = 6789;
char p[20];
itoa(n,s,10);
printf("n=%d,s=%s",n,s);
return 0;
}
Previous Question | Next Question |
Explain What is forward reference w.r.t. pointers in c? | Explain What is the difference between embedded systems and the system in which RTOS is running? |