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
Is c# a good language?
What is difference between constant pointer and constant variable?
Write a program on swapping (100, 50)
What is c standard library?
Is there a way to compare two structure variables?
Can we declare variables anywhere in c?
What is this infamous null pointer, anyway?
Where are the auto variables stored?
Explain goto?
What are keywords in c with examples?
Write a program to swap two numbers without using third variable?
What 'lex' does?
Why we write conio h in c?
Who developed c language?
What is a good way to implement complex numbers in c?