simple c program for 12345 convert 54321 with out using string
Answer Posted / rajan sonvane
#include<stdio.h>
#include<conio.h>
main()
{
int *p,a[5]={1,2,3,4,5},b[5],i=0;
p=a;
while(i<5)
{
b[i]=*(p+4-i);
i++;
}
for(i=0; i<5; i++)
{
printf("%d",b[i]);
}
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
what is a constant pointer in C
What do you mean by a local block?
What is a keyword?
What will the preprocessor do for a program?
What are the c keywords?
What are conditional operators in C?
Explain void pointer?
How can I change the size of the dynamically allocated array?
How can I find the modification date of a file?
what is the syallabus of computer science students in group- 1?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Which is the best website to learn c programming?
What is NULL pointer?
What is "Hungarian Notation"?
How can I manipulate individual bits?