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...

how can i get the output
54321
4321
321
21
1

in c programming........???? pls help......

Answer Posted / dattatreya

#include<stdio.h>
int main(){
char a[6]="54321";
char *p=a;
while(*p){
printf("%s ",p++);
}
return 0;
}

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a sequential access file?

1091


Why is c called a mid-level programming language?

1148


please send me the code for multiplying sparse matrix using c

2119


How many types of operator or there in c?

1022


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1075


Difference between malloc() and calloc() function?

1129


What is assert and when would I use it?

962


How can a program be made to print the line number where an error occurs?

1035


Process by which one bit pattern in to another by bit wise operation is?

1096


Explain how can you tell whether two strings are the same?

970


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1143


about c language

1960


How to implement a packet in C

2828


What is the advantage of c?

1047


Difference between MAC vs. IP Addressing

1093