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

Describe static function with its usage?

1211


i got 75% in all semester am i eligible for your company

2230


Not all reserved words are written in lowercase. TRUE or FALSE?

1236


writ a program to compare using strcmp VIVA and viva with its output.

2024


If fflush wont work, what can I use to flush input?

1106


What are the different types of data structures in c?

1166


a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list

1004


What is the difference between a string and an array?

1209


Explain how do you list a file’s date and time?

1041


Difference between linking and loading?

1113


What do you mean by invalid pointer arithmetic?

1079


What does != Mean in c?

1055


What is #define size in c?

1197


What is an operator?

1077


What is 02d in c?

1077