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

Answer Posted / amit shrivastava

it will show hello5
hello from the inner printf and 5 value return by the outer
printf function,as printf return int value of the string
and in the example there is 5 wrds so the lenght is 5 which
it return.

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what are binary trees?

604


What are the different properties of variable number of arguments?

659


Where is volatile variable stored?

639


What header files do I need in order to define the standard library functions I use?

535


What is the difference between exit() and _exit() function in c?

578






what will be the output for the following main() { printf("hi" "hello"); }

9307


Why do we use return in c?

561


Explain the use of bit fieild.

706


in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none

595


Is c weakly typed?

569


How do I use void main?

628


Can include files be nested?

623


What are structures and unions? State differencves between them.

607


How will you divide two numbers in a MACRO?

704


What is the difference between declaring a variable and defining a variable?

716