Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is a constant pointer in C

1157


What do you mean by a local block?

1085


What is a keyword?

1164


What will the preprocessor do for a program?

1074


What are the c keywords?

1203


What are conditional operators in C?

1096


Explain void pointer?

1041


How can I change the size of the dynamically allocated array?

1149


How can I find the modification date of a file?

1279


what is the syallabus of computer science students in group- 1?

2316


What does the error 'Null Pointer Assignment' mean and what causes this error?

1217


Which is the best website to learn c programming?

1078


What is NULL pointer?

1089


What is "Hungarian Notation"?

1107


How can I manipulate individual bits?

1039