main()
{
unsigned int i=10;
while(i-->=0)
printf("%u ",i);
}
Answers were Sorted based on User's Feedback
Answer / susie
Answer :
10 9 8 7 6 5 4 3 2 1 0 65535 65534…..
Explanation:
Since i is an unsigned integer it can never become negative.
So the expression i-- >=0 will always be true, leading to
an infinite loop.
| Is This Answer Correct ? | 25 Yes | 5 No |
how to swap 3 nos without using temporary variable
Develop a routine to reflect an object about an arbitrarily selected plane
create a C-code that will display the total fare of a passenger of a taxi if the driver press enter,the timer will stop. Every 10 counts is 2 pesos. Initial value is 25.00
main() { char *p; p="Hello"; printf("%c\n",*&*p); }
main() { while (strcmp(“some”,”some\0”)) printf(“Strings are not equal\n”); }
Write a program to receive an integer and find it's octal equivalent. How can i do with using while loop.
String copy logic in one line.
What is the output for the program given below typedef enum errorType{warning, error, exception,}error; main() { error g1; g1=1; printf("%d",g1); }
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() { int i=-1; -i; printf("i = %d, -i = %d \n",i,-i); }
abcdedcba abc cba ab ba a a
To reverse an entire text file into another text file.... get d file names in cmd line