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
What is a sequential access file?
Why is c called a mid-level programming language?
please send me the code for multiplying sparse matrix using c
How many types of operator or there in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
Difference between malloc() and calloc() function?
What is assert and when would I use it?
How can a program be made to print the line number where an error occurs?
Process by which one bit pattern in to another by bit wise operation is?
Explain how can you tell whether two strings are the same?
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?
about c language
How to implement a packet in C
What is the advantage of c?
Difference between MAC vs. IP Addressing