Answer Posted / kanakaraju
#include< stdio.h>
#include<conio.h>
main()
{
int a[5];
char c[5]={'1','2','3','4','5'};
int i;
for(i=0;i<5;i++)
a[i]=c[i]-'0';
for(i=0;i<5;i++)
printf("%d ",a[i]);
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a rvalue?
Explain how do you print only part of a string?
What is union in c?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is the use of volatile?
How to declare pointer variables?
What is an arrays?
What are types of functions?
What is auto keyword in c?
What is the use of ?: Operator?
What is #ifdef ? What is its application?
Explain how does flowchart help in writing a program?
What is data types?
Explain how do you convert strings to numbers in c?
Why we not create function inside function.