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
Why clrscr is used after variable declaration?
Can you mix old-style and new-style function syntax?
What is the purpose of clrscr () printf () and getch ()?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
Is main is user defined function?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
What is a char c?
Differentiate between ordinary variable and pointer in c.
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Explain what’s a signal? Explain what do I use signals for?
Can we assign string to char pointer?
What is a program flowchart and explain how does it help in writing a program?
will u please send me the placement papers to my mail???????????????????
What is structure padding and packing in c?
What is c language and why we use it?