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 |
Write a prog to accept a given string in any order and flash error if any of the character is different. For example : If abc is the input then abc, bca, cba, cab bac are acceptable, but aac or bcd are unacceptable.
main() { int i=0; for(;i++;printf("%d",i)) ; printf("%d",i); }
main() { char c; int i = 456; clrscr(); c = i; printf("%d", c); } a. 456 b. -456 c. random number d. none of the above
main( ) { int a[2][3][2] = {{{2,4},{7,8},{3,4}},{{2,2},{2,3},{3,4}}}; printf(“%u %u %u %d \n”,a,*a,**a,***a); printf(“%u %u %u %d \n”,a+1,*a+1,**a+1,***a+1); }
What is the problem with the following code segment? while ((fgets(receiving array,50,file_ptr)) != EOF) ;
respected sir, i did my MCA in 2013 when i am going to attend to an interview i was asked about my project how will i explain my project could please help me in this and my project title is "Social Networking Site For Social Responsibility"
write a c program to Reverse a given string using string function and also without string function
Write a program to print a square of size 5 by using the character S.
Write a C function to search a number in the given list of numbers. donot use printf and scanf
main() { int i; printf("%d",scanf("%d",&i)); // value 10 is given as input here }
programming in c lanugaue programm will errror error with two header file one as stdio.h and other one is conio.h
void main() { while(1){ if(printf("%d",printf("%d"))) break; else continue; } }