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() { int i=5; printf(“%d”,i=++i ==6); }
main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(“%d” ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(“%d ” ,*p); p++; } }
main() { int i=5; printf("%d%d%d%d%d%d",i++,i--,++i,--i,i); }
prog. to produce 1 2 3 4 5 6 7 8 9 10
to remove the repeated cahracter from the given caracter array. i.e.., if the input is SSAD output should of SAD
main() { int a=10,*j; void *k; j=k=&a; j++; k++; printf("\n %u %u ",j,k); }
How to count a sum, when the numbers are read from stdin and stored into a structure?
Finding a number which was log of base 2
what is brs test reply me email me kashifabbas514@gmail.com
main() { clrscr(); } clrscr();
main() { int c[ ]={2.8,3.4,4,6.7,5}; int j,*p=c,*q=c; for(j=0;j<5;j++) { printf(" %d ",*c); ++q; } for(j=0;j<5;j++){ printf(" %d ",*p); ++p; } }
main() { float me = 1.1; double you = 1.1; if(me==you) printf("I love U"); else printf("I hate U"); }