printf("%d",(printf("Hello")); What it returns?

Answer Posted / milan

it will return hello5,firstly the inner printf executes
print the hello and return the number of characters printed
that is 5 which get printed by outer printf...
More info at:
http://clanguagestuff.blogspot.com/2011/02/what-printf-returns.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When can a far pointer be used?

584


What is sizeof in c?

563


What is dynamic memory allocation?

800


Why is it that not all header files are declared in every C program?

670


How can you invoke another program from within a C program?

609






What is hungarian notation? Is it worthwhile?

683


What are the advantage of c language?

544


What is void pointers in c?

578


What are the advantages of external class?

588


how to construct a simulator keeping the logical boolean gates in c

1718


List some of the dynamic data structures in C?

779


Explain #pragma statements.

598


What does static variable mean in c?

641


What library is sizeof in c?

557


What is storage class?

644