for(i=0;i=printf("Hello");i++);
printf("Hello");
how many times how will be printed?????????
Answer Posted / vignesh1988i
here the basic thing we must understand is that :
printf(); is a function. this printf() always returns the
number of character it processes inside " ".......here it
will return 4 according to me... this will will be assigned
to i and everytime 'i' will be a non zero value always and
also a semicolon is placed after for statement , so compiler
takes that has the next line and PRINTS "HELLO" INFINITELY
since 'i' value is always non zero or always TRUE...
and there is no way for the second printf() to get printed
according to me.........
thank u
| Is This Answer Correct ? | 18 Yes | 5 No |
Post New Answer View All Answers
What is uint8 in c?
What is pre-emptive data structure and explain it with example?
Explain what are multidimensional arrays?
write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?
What is difference between array and pointer in c?
Is that possible to add pointers to each other?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
Explain main function in c?
Write a program for finding factorial of a number.
what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values
What is a list in c?
What are the types of data files?
Explain what is the use of a semicolon (;) at the end of every program statement?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
A program is required to print your biographic information including: Names, gender, student Number, Cell Number, line of study and your residential address.