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
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.
what is uses of .net
How can I read a binary data file properly?
Does sprintf put null character?
Explain the difference between malloc() and calloc() function?
Why is structure important for a child?
Tell me when is a void pointer used?
What are the types of variables in c?
Tell us the use of fflush() function in c language?
How many types of arrays are there in c?
What are the types of i/o functions?
Why is c called a mid-level programming language?
What is the best way to comment out a section of code that contains comments?
Write a code of a general series where the next element is the sum of last k terms.
What is pointer to pointer in c?