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
Linked lists -- can you tell me how to check whether a linked list is circular?
What is variable in c example?
What is c system32 taskhostw exe?
Distinguish between actual and formal arguments.
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
Difference between malloc() and calloc() function?
What does *p++ do? What does it point to?
In C language, a variable name cannot contain?
Where we use clrscr in c?
How can you find the day of the week given the date?
How reliable are floating-point comparisons?
what will be the output for the following main() { printf("hi" "hello"); }
What is the use of ?: Operator?
How do we print only part of a string in c?
What are actual arguments?