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
Explain how can you restore a redirected standard stream?
What is the g value paradox?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
How do you override a defined macro?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is wrong with this statement? Myname = 'robin';
Explain logical errors? Compare with syntax errors.
in linking some of os executables are linking name some of them
What is a function simple definition?
Explain how can I make sure that my program is the only one accessing a file?
How does pointer work in c?
what are bit fields? What is the use of bit fields in a structure declaration?
What is the equivalent code of the following statement in WHILE LOOP format?
What is a const pointer in c?
Explain pointer. What are function pointers in C?