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
What is scope and lifetime of a variable in c?
Is Exception handling possible in c language?
hi send me sample aptitude papers of cts?
What are preprocessor directives in c?
What does s c mean in text?
What is structure and union in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
In C programming, how do you insert quote characters (‘ and “) into the output screen?
How can you increase the size of a dynamically allocated array?
Is there anything like an ifdef for typedefs?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What are pointers? Why are they used?
How can I insert or delete a line (or record) in the middle of a file?
What is the best style for code layout in c?
Why n++ execute faster than n+1 ?