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

I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

1953


what is uses of .net

1742


How can I read a binary data file properly?

1184


Does sprintf put null character?

1054


Explain the difference between malloc() and calloc() function?

1060


Why is structure important for a child?

1108


Tell me when is a void pointer used?

1188


What are the types of variables in c?

1025


Tell us the use of fflush() function in c language?

1160


How many types of arrays are there in c?

1050


What are the types of i/o functions?

1350


Why is c called a mid-level programming language?

1213


What is the best way to comment out a section of code that contains comments?

1346


Write a code of a general series where the next element is the sum of last k terms.

1045


What is pointer to pointer in c?

1118