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
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
How can I swap two values without using a temporary?
What do you mean by a sequential access file?
What is a buffer in c?
Write a code to generate divisors of an integer?
Write a program on swapping (100, 50)
Write a code to determine the total number of stops an elevator would take to serve N number of people.
What is a program flowchart and how does it help in writing a program?
What is "Hungarian Notation"?
What is the importance of c in your views?
What the advantages of using Unions?
List a few unconditional control statement in c.
Why does the call char scanf work?
Is fortran still used in 2018?
What is clrscr ()?