Answer Posted / raj
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 program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Can I initialize unions?
Explain what does the function toupper() do?
Is int a keyword in c?
What is the significance of an algorithm to C programming?
using only #include
Can you please explain the difference between strcpy() and memcpy() function?
What is keyword with example?
Can a file other than a .h file be included with #include?
Does c have an equivalent to pascals with statement?
Write a C program to count the number of email on text
What are dangling pointers in c?
What do you mean by dynamic memory allocation in c?
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
Can an array be an Ivalue?