int i;
main(){
int t;
for ( t=4;scanf("%d",&i)-t;printf("%d\n",i))
printf("%d--",t--);
}
// If the inputs are 0,1,2,3 find the o/p
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
4--0
3--1
2--2
Explanation:
Let us assume some x= scanf("%d",&i)-t the values
during execution
will be,
t i x
4 0 -4
3 1 -2
2 2 0
| Is This Answer Correct ? | 5 Yes | 5 No |
main() { 41printf("%p",main); }8
Write a C program to print look and say sequence? For example if u get the input as 1 then the sequence is 11 21 1211 111221 312211 12112221 .......(it counts the no. of 1s,2s etc which is in successive order) and this sequence is used in run-length encoding.
int i,j; for(i=0;i<=10;i++) { j+=5; assert(i<5); }
What is the match merge ? compare data step match merge with proc sql merge - how many types are there ? data step vs proc sql
void main() { char a[]="12345\0"; int i=strlen(a); printf("here in 3 %d\n",++i); }
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
Derive expression for converting RGB color parameters to HSV values
what is variable length argument list?
Is the following code legal? typedef struct a { int x; aType *b; }aType
Write a program that produces these three columns sequence nos. using loop statement Sequence nos. Squared Squared + 5 1 1 6 2 4 9 3 9 14 4 16 21 5 25 30
How to palindrom string in c language?
Write a single line c expression to delete a,b,c from aabbcc