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
How does #define work?
In which header file is the null macro defined?
What does void main () mean?
Explain a pre-processor and its advantages.
What is difference between stdio h and conio h?
What is cohesion in c?
plz let me know how to become a telecom protocol tester. thank you.
What do you understand by friend-functions? How are they used?
What is typedef struct in c?
how to count no of words,characters,lines in a paragraph.
What is structure and union in c?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
How are pointers declared in c?
Why should I use standard library functions instead of writing my own?
What is self-referential structure in c programming?