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
Why c is faster than c++?
What is the difference between struct and typedef struct in c?
How can you draw circles in C?
Write a program to swap two numbers without using third variable?
What is a lookup table in c?
What is dynamic memory allocation?
Is null equal to 0 in sql?
Why is it that not all header files are declared in every C program?
When should a type cast not be used?
write a progrmm in c language take user interface generate table using for loop?
How is = symbol different from == symbol in c programming?
What are pragmas and what are they good for?
Why dont c comments nest?
regarding pointers concept
What is the explanation for prototype function in c?