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 of advanced Fibonacci series.
Why do we need arrays in c?
What is getch () for?
Write a program to check palindrome number in c programming?
What is strcpy() function?
Is there any possibility to create customized header file with c programming language?
How can a program be made to print the line number where an error occurs?
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
Should a function contain a return statement if it does not return a value?
plz let me know how to become a telecom protocol tester. thank you.
Define macros.
can anyone suggest some site name..where i can get some good data structure puzzles???
how to execute a program using if else condition and the output should enter number and the number is odd only...
What is structure of c program?
What does *p++ do? What does it point to?