for(i=0;i=printf("Hello");i++);
printf("Hello");
how many times how will be printed?????????
Answer Posted / kalyan chukka
Here in the loop it given as i=0;i=printf("Hello");
So Printf function returns how many no of charecters it
printed so it takes 5 so loop is
for (i=0;i=5;i++) so loop will be this
in the above loop first i=0 and then we assign i=5 so loop
will become for(i=5;i++) it becomes infinite loop hello
printed infineite loop.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is there a way to jump out of a function or functions?
What is c programming structure?
why return type of main is not necessary in linux
What does c mean?
Some coders debug their programs by placing comment symbols on some codes instead of deleting it. How does this aid in debugging?
What is signed and unsigned?
Why is c called a mid-level programming language?
C language questions for civil engineering
What does struct node * mean?
What is the use of a ‘ ’ character?
Why is c called c?
What are reserved words?
What are the advantages of c language?
what do you mean by enumeration constant?
What is the significance of c program algorithms?