for(i=0;i=printf("Hello");i++);
printf("Hello");
how many times how will be printed?????????
Answer Posted / ruchi
Infinite times
i =printf("Hello");
here printf("hello") will return 5 i.e i=5 which will always
remain true that's why hello will be printed infinate times.
| Is This Answer Correct ? | 23 Yes | 6 No |
Post New Answer View All Answers
Explain what is gets() function?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
What do you understand by normalization of pointers?
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What is output redirection?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
Explain the use of fflush() function?
find out largest elemant of diagonalmatrix
Difference between goto, long jmp() and setjmp()?
What is the scope of static variable in c?
Explain the difference between exit() and _exit() function?
Explain how can you restore a redirected standard stream?
Why structure is used in c?
What is the heap in c?
Tell us two differences between new () and malloc ()?